diff options
author | Richard Boß <richboss@gmail.de> | 2016-10-25 18:34:04 +0200 |
---|---|---|
committer | Richard Boß <richboss@gmail.de> | 2016-10-25 18:34:04 +0200 |
commit | 6f9c106aa352c3e13f34c4216a4516b4c18e452b (patch) | |
tree | c5ba899d54e6a32cc8e509ffa809373664df31b0 /ranger | |
parent | 21312c3dc2721a5116b1d3d27255084390346ec5 (diff) | |
download | ranger-6f9c106aa352c3e13f34c4216a4516b4c18e452b.tar.gz |
fix argument order
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/linemode.py | 2 | ||||
-rw-r--r-- | ranger/ext/vcs/vcs.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ranger/core/linemode.py b/ranger/core/linemode.py index ca9fb86a..f63cb142 100644 --- a/ranger/core/linemode.py +++ b/ranger/core/linemode.py @@ -99,7 +99,7 @@ class FileInfoLinemode(LinemodeBase): if not file.is_directory: from subprocess import Popen, PIPE, CalledProcessError try: - process = Popen(stdout=PIPE, "file", "-bL", file.path) + process = Popen(["file", "-bL", file.path], stdout=PIPE) output, unused_err = process.communicate() retcode = process.poll() if retcode: diff --git a/ranger/ext/vcs/vcs.py b/ranger/ext/vcs/vcs.py index ed7838f7..1ef23000 100644 --- a/ranger/ext/vcs/vcs.py +++ b/ranger/ext/vcs/vcs.py @@ -119,7 +119,7 @@ class Vcs(object): # pylint: disable=too-many-instance-attributes with open(os.devnull, 'w') as devnull: try: if catchout: - process = subprocess.Popen(stdout=subprocess.PIPE, cmd, cwd=path, stderr=devnull) + process = subprocess.Popen(cmd, cwd=path, stdout=subprocess.PIPE, stderr=devnull) output, unused_err = process.communicate() retcode = process.poll() if retcode: |