From 6f9c106aa352c3e13f34c4216a4516b4c18e452b Mon Sep 17 00:00:00 2001 From: Richard Boß Date: Tue, 25 Oct 2016 18:34:04 +0200 Subject: fix argument order --- ranger/core/linemode.py | 2 +- 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: -- cgit 1.4.1-2-gfad0