mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-19 04:21:14 +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:
|
||||
return subprocess.check_output(
|
||||
['pkgfile', '-b', '-v', command.script.split(" ")[0]],
|
||||
universal_newlines=True, stderr=subprocess.DEVNULL
|
||||
universal_newlines=True, stderr=DEVNULL
|
||||
).split()
|
||||
except subprocess.CalledProcessError:
|
||||
return None
|
||||
|
Loading…
x
Reference in New Issue
Block a user