1
0
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:
Pablo Santiago Blum de Aguiar 2015-05-15 15:53:37 -03:00
parent d7c67ad09d
commit fc8f1b1136

View File

@ -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