Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 585960 Details for
Bug 691638
portage.util._xattr._XattrSystemCommands.{get,list} trigger "ResourceWarning: unclosed file <_io.BufferedReader name=...>"
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
portage-_XattrSystemCommands.patch (text/plain), 1.28 KB, created by
Arfrever Frehtes Taifersar Arahesis
on 2019-08-07 02:48:06 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Arfrever Frehtes Taifersar Arahesis
Created:
2019-08-07 02:48:06 UTC
Size:
1.28 KB
patch
obsolete
>From 63ca0962c90958c9a70965ef84d0d11b954b3f6f Mon Sep 17 00:00:00 2001 >From: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> >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 <Arfrever@Apache.Org> >--- > 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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 691638
: 585960