diff options
-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: |