summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xranger/config/commands.py4
-rw-r--r--ranger/core/actions.py2
-rw-r--r--ranger/core/fm.py4
-rw-r--r--ranger/ext/shutil_generatorized.py6
-rw-r--r--ranger/gui/ui.py2
-rw-r--r--tests/ranger/container/test_container.py2
6 files changed, 10 insertions, 10 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index 83cbed01..e09e1f10 100755
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -569,7 +569,7 @@ class mark_tag(Command):
 
     def execute(self):
         cwd = self.fm.thisdir
-        tags = self.rest(1).replace(" ","")
+        tags = self.rest(1).replace(" ", "")
         if not self.fm.tags or not cwd.files:
             return
         for fileobj in cwd.files:
@@ -783,7 +783,7 @@ class rename(Command):
             self.fm.thisdir.pointed_obj = f
             self.fm.thisfile = f
             for t in tagged:
-                self.fm.tags.tags[t.replace(old_name,new_name)] = tagged[t]
+                self.fm.tags.tags[t.replace(old_name, new_name)] = tagged[t]
                 self.fm.tags.dump()
 
     def tab(self, tabnum):
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 34e91256..a39cef21 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -279,7 +279,7 @@ class Actions(FileManagerAware, SettingsAware):
             macros['d'] = '.'
 
         # define d/f/p/s macros for each tab
-        for i in range(1,10):
+        for i in range(1, 10):
             try:
                 tab = self.fm.tabs[i]
             except:
diff --git a/ranger/core/fm.py b/ranger/core/fm.py
index f6792b95..052584a6 100644
--- a/ranger/core/fm.py
+++ b/ranger/core/fm.py
@@ -71,7 +71,7 @@ class FM(Actions, SignalDispatcher):
 
         self.log.append('ranger {0} started! Process ID is {1}.' \
                 .format(__version__, os.getpid()))
-        self.log.append('Running on Python ' + sys.version.replace('\n',''))
+        self.log.append('Running on Python ' + sys.version.replace('\n', ''))
 
         mimetypes.knownfiles.append(os.path.expanduser('~/.mime.types'))
         mimetypes.knownfiles.append(self.relpath('data/mime.types'))
@@ -218,7 +218,7 @@ class FM(Actions, SignalDispatcher):
         self.thistab.thisdir = obj
 
     thisfile = property(_get_thisfile, _set_thisfile)
-    thisdir  = property(_get_thisdir,  _set_thisdir)
+    thisdir  = property(_get_thisdir, _set_thisdir)
 
     def block_input(self, sec=0):
         self.input_blocked = sec != 0
diff --git a/ranger/ext/shutil_generatorized.py b/ranger/ext/shutil_generatorized.py
index 6b63f4c7..7958b048 100644
--- a/ranger/ext/shutil_generatorized.py
+++ b/ranger/ext/shutil_generatorized.py
@@ -10,8 +10,8 @@ import sys
 import stat
 from os.path import abspath
 
-__all__ = ["copyfileobj","copyfile","copystat","copy2","BLOCK_SIZE",
-           "copytree","move","rmtree","Error", "SpecialFileError"]
+__all__ = ["copyfileobj", "copyfile", "copystat", "copy2", "BLOCK_SIZE",
+           "copytree", "move", "rmtree", "Error", "SpecialFileError"]
 
 APPENDIX = '_'
 BLOCK_SIZE = 16 * 1024
@@ -41,7 +41,7 @@ def copyfileobj(fsrc, fdst, length=BLOCK_SIZE):
 
 def _samefile(src, dst):
     # Macintosh, Unix.
-    if hasattr(os.path,'samefile'):
+    if hasattr(os.path, 'samefile'):
         try:
             return os.path.samefile(src, dst)
         except OSError:
diff --git a/ranger/gui/ui.py b/ranger/gui/ui.py
index e5833839..5c4e2ee0 100644
--- a/ranger/gui/ui.py
+++ b/ranger/gui/ui.py
@@ -30,7 +30,7 @@ def _setup_mouse(signal):
         ## preview) and the next key is another mouse click, the bstate of this
         ## mouse event will be invalid.  (atm, invalid bstates are recognized
         ## as scroll-down, so this avoids an errorneous scroll-down action)
-        curses.ungetmouse(0,0,0,0,0)
+        curses.ungetmouse(0, 0, 0, 0, 0)
     else:
         curses.mousemask(0)
 
diff --git a/tests/ranger/container/test_container.py b/tests/ranger/container/test_container.py
index a24c3f8d..140186d0 100644
--- a/tests/ranger/container/test_container.py
+++ b/tests/ranger/container/test_container.py
@@ -2,7 +2,7 @@ from ranger.container import history
 
 
 HISTORY_TEST_ENTRIES = [str(k) for k in range(20)]
-OTHER_TEST_ENTRIES = [str(k) for k in range(40,45)]
+OTHER_TEST_ENTRIES = [str(k) for k in range(40, 45)]
 
 def testhistorybasic():
     # A history is a buffer of limited size that stores the last `maxlen`