mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-19 12:24:29 +00:00
fix(pacman): make the entire rule py2-compatible
One reference to subprocess.DEVNULL remained. Signed-off-by: Pablo Santiago Blum de Aguiar <scorphus@gmail.com>
This commit is contained in:
parent
d7c67ad09d
commit
fc8f1b1136
@ -17,7 +17,7 @@ def __get_pkgfile(command):
|
|||||||
try:
|
try:
|
||||||
return subprocess.check_output(
|
return subprocess.check_output(
|
||||||
['pkgfile', '-b', '-v', command.script.split(" ")[0]],
|
['pkgfile', '-b', '-v', command.script.split(" ")[0]],
|
||||||
universal_newlines=True, stderr=subprocess.DEVNULL
|
universal_newlines=True, stderr=DEVNULL
|
||||||
).split()
|
).split()
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
return None
|
return None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user