diff --git a/Lib/urllib.py b/Lib/urllib.py index e44f6b1435d3..b410bd89a760 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py @@ -101,8 +101,8 @@ def close(self): self.cleanup() def cleanup(self): - import os if self.tempcache: + import os for url in self.tempcache.keys(): try: os.unlink(self.tempcache[url][0])