summaryrefslogtreecommitdiff
path: root/Lib/urllib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/urllib.py')
-rw-r--r--Lib/urllib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py
index e44f6b1435..b410bd89a7 100644
--- a/Lib/urllib.py
+++ b/Lib/urllib.py
@@ -101,8 +101,8 @@ class URLopener:
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])