diff options
Diffstat (limited to 'deluge/path_chooser_common.py')
-rw-r--r-- | deluge/path_chooser_common.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/deluge/path_chooser_common.py b/deluge/path_chooser_common.py index 0f93feef6..002a6e80a 100644 --- a/deluge/path_chooser_common.py +++ b/deluge/path_chooser_common.py @@ -8,12 +8,8 @@ # See LICENSE for more details. # -from __future__ import unicode_literals - import os -from deluge.common import PY2 - def is_hidden(filepath): def has_hidden_attribute(filepath): @@ -54,10 +50,7 @@ def get_completion_paths(args): def get_subdirs(dirname): try: - if PY2: - return os.walk(dirname).__next__[1] - else: - return next(os.walk(dirname))[1] + return next(os.walk(dirname))[1] except StopIteration: # Invalid dirname return [] |