commit: 90ffe62d5b7b224753927f2fa61daf19488e14f9
Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
AuthorDate: Wed Aug 7 02:41:51 2019 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Thu Aug 8 22:57:28 2019 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=90ffe62d
_xattr._XattrSystemCommands.{get,list}: Do not hide stderr and fix
ResourceWarning.
Bug: https://bugs.gentoo.org/691638
Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache.Org>
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
lib/portage/util/_xattr.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/portage/util/_xattr.py b/lib/portage/util/_xattr.py
index 9a8704d70..c118589a3 100644
--- a/lib/portage/util/_xattr.py
+++ b/lib/portage/util/_xattr.py
@@ -1,4 +1,4 @@
-# Copyright 2010-2015 Gentoo Foundation
+# Copyright 2010-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
"""Portability shim for xattr support
@@ -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: