summary refs log tree commit diff stats
path: root/ranger/ext/iter_tools.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-02-22 20:24:09 +0100
committerhut <hut@lavabit.com>2013-02-22 20:24:09 +0100
commitb68d28c1da376547672ca00ef7bc16e94030db18 (patch)
tree3cef942ff76812606623666184555132a862d5b1 /ranger/ext/iter_tools.py
parentc1138eb006c6daaa9b88204b0695f18d55e027dc (diff)
downloadranger-b68d28c1da376547672ca00ef7bc16e94030db18.tar.gz
Fix docstrings to comply with the PEP8
http://www.python.org/dev/peps/pep-0008/#documentation-strings
Diffstat (limited to 'ranger/ext/iter_tools.py')
-rw-r--r--ranger/ext/iter_tools.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/ranger/ext/iter_tools.py b/ranger/ext/iter_tools.py
index f962a37d..eef943fd 100644
--- a/ranger/ext/iter_tools.py
+++ b/ranger/ext/iter_tools.py
@@ -4,8 +4,7 @@
 from collections import deque
 
 def flatten(lst):
-    """
-    Flatten an iterable.
+    """Flatten an iterable.
 
     All contained tuples, lists, deques and sets are replaced by their
     elements and flattened as well.
@@ -24,8 +23,7 @@ def flatten(lst):
             yield elem
 
 def unique(iterable):
-    """
-    Return an iterable of the same type which contains unique items.
+    """Return an iterable of the same type which contains unique items.
 
     This function assumes that:
     type(iterable)(list(iterable)) == iterable