From 63ca0962c90958c9a70965ef84d0d11b954b3f6f Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Wed, 7 Aug 2019 04:41:51 +0200 Subject: [PATCH] _xattr._XattrSystemCommands.{get,list}: Do not hide stderr and fix ResourceWarning. Bug: https://bugs.gentoo.org/691638 Signed-off-by: Arfrever Frehtes Taifersar Arahesis --- lib/portage/util/_xattr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/portage/util/_xattr.py b/lib/portage/util/_xattr.py index 9a8704d70..c1448a6a4 100644 --- a/lib/portage/util/_xattr.py +++ b/lib/portage/util/_xattr.py @@ -63,7 +63,7 @@ class _XattrSystemCommands(_XattrGetAll): cmd = ['getfattr', '--absolute-names', '-n', name, item] if nofollow: cmd += ['-h'] - proc = cls._call(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + proc = cls._call(cmd, stdout=subprocess.PIPE) value = None for _, value in cls._parse_output(proc.stdout): @@ -94,7 +94,7 @@ class _XattrSystemCommands(_XattrGetAll): if nofollow: cmd += ['-h'] cmd += ['-m', ('^%s[.]' % namespace) if namespace else '-'] - proc = cls._call(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + proc = cls._call(cmd, stdout=subprocess.PIPE) ret = [] if namespace: -- 2.22.0