diff options
author | stepshal <nessento@openmailbox.org> | 2016-06-07 00:29:19 +0700 |
---|---|---|
committer | hut <hut@lepus.uberspace.de> | 2016-06-06 23:13:52 +0200 |
commit | c256b5d0687688630d0eb2ede9dfbe481eef6969 (patch) | |
tree | fc99e7aba834b3d3975b9a846020ee68e9ba8e41 /ranger | |
parent | e77aaac145946dc404e80ef2c065034d73467949 (diff) | |
download | ranger-c256b5d0687688630d0eb2ede9dfbe481eef6969.tar.gz |
Make exactly one space after comma
Update commands.py
Diffstat (limited to 'ranger')
-rwxr-xr-x | ranger/config/commands.py | 4 | ||||
-rw-r--r-- | ranger/core/actions.py | 2 | ||||
-rw-r--r-- | ranger/core/fm.py | 4 | ||||
-rw-r--r-- | ranger/ext/shutil_generatorized.py | 6 | ||||
-rw-r--r-- | ranger/gui/ui.py | 2 |
5 files changed, 9 insertions, 9 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) |