Update docstrings

This commit is contained in:
Fabian Affolter committed 2016-01-27 00:08:06 +01:00
1 parent b13e48bd71
commit 7aba78f96e
7 files changed
+32 -14

No files matched your search

+4 -3
View File
@@ -18,7 +18,6 @@ from functools import wraps
from .dt import datetime_to_local_str, utcnow
RE_SANITIZE_FILENAME = re.compile(r'(~|\.\.|/|\\)')
RE_SANITIZE_PATH = re.compile(r'(~|\.(\.)+)')
RE_SLUGIFY = re.compile(r'[^a-z0-9_]+')
@@ -181,8 +180,10 @@ class OrderedSet(collections.MutableSet):
curr = curr[1]
def pop(self, last=True): # pylint: disable=arguments-differ
""" Pops element of the end of the set.
Set last=False to pop from the beginning. """
"""
Pops element of the end of the set.
Set last=False to pop from the beginning.
"""
if not self:
raise KeyError('set is empty')
key = self.end[1][0] if last else self.end[2][0]