1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-19 04:21:14 +00:00

Merge pull request #198 from scorphus/pacman-py2

fix(pacman): make the entire rule py2-compatible
This commit is contained in:
Vladimir Iakovlev 2015-05-16 11:50:36 +02:00
commit bbdac1884a

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