From 839327edd3653a83b454293c45616de32c944b01 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Sat, 27 Aug 2011 22:16:14 +0200 Subject: [PATCH] Fix "ResourceWarning: unclosed file" with Python 3.2. --- pym/_emerge/Scheduler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2