about summary refs log tree commit diff stats
path: root/ranger/api/commands.py
diff options
context:
space:
mode:
authorstepshal <nessento@openmailbox.org>2016-06-19 09:07:24 +0700
committerstepshal <nessento@openmailbox.org>2016-06-19 09:07:24 +0700
commitd4598be62b8913b339c8c482baaab294b63364ec (patch)
tree08c780bf55d3cd3dc20e01d9567d2e7e55c5197a /ranger/api/commands.py
parent904d3df13a96c2ded55919ff2a3ed873b8da3c9e (diff)
downloadranger-d4598be62b8913b339c8c482baaab294b63364ec.tar.gz
Remove reduntant backslash between brackets.
Diffstat (limited to 'ranger/api/commands.py')
-rw-r--r--ranger/api/commands.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/ranger/api/commands.py b/ranger/api/commands.py
index 7d1b7506..1d6a2cdf 100644
--- a/ranger/api/commands.py
+++ b/ranger/api/commands.py
@@ -57,8 +57,8 @@ class CommandContainer(object):
 
     def get_command(self, name, abbrev=True):
         if abbrev:
-            lst = [cls for cmd, cls in self.commands.items() \
-                    if cls.allow_abbrev and cmd.startswith(name) \
+            lst = [cls for cmd, cls in self.commands.items()
+                    if cls.allow_abbrev and cmd.startswith(name)
                     or cmd == name]
             if len(lst) == 0:
                 raise KeyError
@@ -274,7 +274,7 @@ class Command(FileManagerAware):
             # are we in the middle of the filename?
             else:
                 _, dirnames, _ = next(os.walk(abs_dirname))
-                dirnames = [dn for dn in dirnames \
+                dirnames = [dn for dn in dirnames
                         if dn.startswith(rel_basename)]
         except (OSError, StopIteration):
             # os.walk found nothing
@@ -333,7 +333,7 @@ class Command(FileManagerAware):
             else:
                 if directory.content_loaded:
                     # Take the order from the directory object
-                    names = [f.basename for f in directory.files \
+                    names = [f.basename for f in directory.files
                             if f.basename.startswith(rel_basename)]
                     if self.fm.thisfile.basename in names:
                         i = names.index(self.fm.thisfile.basename)
@@ -341,7 +341,7 @@ class Command(FileManagerAware):
                 else:
                     # Fall back to old method with "os.walk"
                     _, dirnames, filenames = next(os.walk(abs_dirname))
-                    names = [name for name in (dirnames + filenames) \
+                    names = [name for name in (dirnames + filenames)
                             if name.startswith(rel_basename)]
                     names.sort()
         except (OSError, StopIteration):
@@ -364,7 +364,7 @@ class Command(FileManagerAware):
 
     def _tab_through_executables(self):
         from ranger.ext.get_executables import get_executables
-        programs = [program for program in get_executables() if \
+        programs = [program for program in get_executables() if
                 program.startswith(self.rest(1))]
         if not programs:
             return