From: Arfrever Frehtes Taifersar Arahesis Date: Sat, 27 Aug 2011 20:16:14 +0000 (+0200) Subject: Fix "ResourceWarning: unclosed file" with Python 3.2. X-Git-Tag: v2.2.0_alpha52~48 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=839327edd3653a83b454293c45616de32c944b01;p=portage.git Fix "ResourceWarning: unclosed file" with Python 3.2. --- diff --git a/pym/_emerge/Scheduler.py b/pym/_emerge/Scheduler.py index 6115f21e7..a6dd98c28 100644 --- a/pym/_emerge/Scheduler.py +++ b/pym/_emerge/Scheduler.py @@ -277,7 +277,7 @@ class Scheduler(PollScheduler): if self._parallel_fetch: # clear out existing fetch log if it exists try: - open(self._fetch_log, 'w') + open(self._fetch_log, 'w').close() except EnvironmentError: pass