summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/actions.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-08-26 08:43:02 -0700
committerZac Medico <zmedico@gentoo.org>2011-08-26 08:43:02 -0700
commit69a45726b314f4f859f4783f4a5a5927a3f36bf5 (patch)
tree7b705c91d83f44397541995bad7a80eb6783746c /pym/_emerge/actions.py
parent8824df689066c24214322f8f13f39d56105bea7f (diff)
downloadportage-69a45726b314f4f859f4783f4a5a5927a3f36bf5.tar.gz
portage-69a45726b314f4f859f4783f4a5a5927a3f36bf5.tar.bz2
portage-69a45726b314f4f859f4783f4a5a5927a3f36bf5.zip
python3.2 fixes: ResourceWarning: unclosed file
Diffstat (limited to 'pym/_emerge/actions.py')
-rw-r--r--pym/_emerge/actions.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py
index 21669638e..882a2db42 100644
--- a/pym/_emerge/actions.py
+++ b/pym/_emerge/actions.py
@@ -13,6 +13,7 @@ import shutil
import signal
import socket
import stat
+import subprocess
import sys
import tempfile
import textwrap
@@ -2883,10 +2884,10 @@ def git_sync_timestamps(settings, portdir):
args = [portage.const.BASH_BINARY, "-c",
"cd %s && git diff-index --name-only --diff-filter=M HEAD" % \
portage._shell_quote(portdir)]
- import subprocess
proc = subprocess.Popen(args, stdout=subprocess.PIPE)
modified_files = set(_unicode_decode(l).rstrip("\n") for l in proc.stdout)
rval = proc.wait()
+ proc.stdout.close()
if rval != os.EX_OK:
return rval