summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorguangzhi <xugzhi1987@gmail.com>2018-03-11 19:50:09 +0800
committerguangzhi <xugzhi1987@gmail.com>2018-03-11 19:50:09 +0800
commit08774ba13f4c8d679dbabcd33f748b1002ee397b (patch)
tree5d637c1af06df86305a176042ae25298423f6dcf
parent5fc66210888db4d446989bab64eb5270d08b4bad (diff)
downloadranger-08774ba13f4c8d679dbabcd33f748b1002ee397b.tar.gz
run test and fix some formatting
-rwxr-xr-xranger/ext/rifle.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/ranger/ext/rifle.py b/ranger/ext/rifle.py
index 670d40a4..8b1314c3 100755
--- a/ranger/ext/rifle.py
+++ b/ranger/ext/rifle.py
@@ -359,30 +359,30 @@ class Rifle(object):  # pylint: disable=too-many-instance-attributes
                         term = os.environ['TERM']
                         if term.startswith('rxvt-unicode'):
                             term = 'urxvt'
-                            cmdflag='-e'
+                            cmdflag = '-e'
                         elif term.startswith('rxvt-'):
                             # Sometimes urxvt calls itself "rxvt-256color"
                             if 'rxvt' in get_executables():
                                 term = 'rxvt'
                             else:
                                 term = 'urxvt'
-                            cmdflag='-e'
+                            cmdflag = '-e'
                     else:
                         term = os.environ['TERMCMD']
-                        if term in ['gnome-terminal', 'xfce4-terminal', 'mate-terminal',\
-                                'terminator']:
-                            cmdflag='-x'
-                        elif term in ['lxterminal',]:
-                            cmdflag='-e'
+                        if term in ['gnome-terminal', 'xfce4-terminal',
+                                    'mate-terminal', 'terminator']:
+                            cmdflag = '-x'
+                        elif term in ['lxterminal', ]:
+                            cmdflag = '-e'
                         else:
-                            cmdflag='-e'
+                            cmdflag = '-e'
 
                     if term not in get_executables():
                         self.hook_logger("Can not determine terminal command.  "
                                          "Please set $TERMCMD manually.")
                         # A fallback terminal that is likely installed:
                         term = 'xterm'
-                        cmdflag='-e'
+                        cmdflag = '-e'
 
                     os.environ['TERMCMD'] = term
                     cmd = [os.environ['TERMCMD'], cmdflag] + cmd