From fc8f1b11361c2aff3e42cc2d2e39b07c505aa3d9 Mon Sep 17 00:00:00 2001 From: Pablo Santiago Blum de Aguiar Date: Fri, 15 May 2015 15:53:37 -0300 Subject: [PATCH] fix(pacman): make the entire rule py2-compatible One reference to subprocess.DEVNULL remained. Signed-off-by: Pablo Santiago Blum de Aguiar --- thefuck/rules/pacman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thefuck/rules/pacman.py b/thefuck/rules/pacman.py index 4115798..71c6e69 100644 --- a/thefuck/rules/pacman.py +++ b/thefuck/rules/pacman.py @@ -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