diff options
Diffstat (limited to 'ranger/ext/iter_tools.py')
-rw-r--r-- | ranger/ext/iter_tools.py | 6 |
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 |