summaryrefslogtreecommitdiffstats
path: root/Lib/urllib.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-03 15:57:58 (GMT)
committerGuido van Rossum <guido@python.org>1998-04-03 15:57:58 (GMT)
commit0454b51282efd92564b5e338e8a364be3054bf10 (patch)
treeec43f6c46df2837f2c8fbfe10742a29ed342aa87 /Lib/urllib.py
parentb5916ab065408111cec262e12dbecbce58daf6ec (diff)
downloadcpython-0454b51282efd92564b5e338e8a364be3054bf10.zip
cpython-0454b51282efd92564b5e338e8a364be3054bf10.tar.gz
cpython-0454b51282efd92564b5e338e8a364be3054bf10.tar.bz2
Oops, pulled over by the tab police :-)
Diffstat (limited to 'Lib/urllib.py')
-rw-r--r--Lib/urllib.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py
index 735745d..dd0b8db 100644
--- a/Lib/urllib.py
+++ b/Lib/urllib.py
@@ -178,7 +178,7 @@ class URLopener:
if not filename and (not type or type == 'file'):
try:
fp = self.open_local_file(url1)
- hdrs = fp.info()
+ hdrs = fp.info()
del fp
return url2pathname(splithost(url1)[1]), hdrs
except IOError, msg:
@@ -187,14 +187,14 @@ class URLopener:
headers = fp.info()
if not filename:
import tempfile
- garbage, path = splittype(url)
- print (garbage, path)
- garbage, path = splithost(path or "")
- print (garbage, path)
- path, garbage = splitquery(path or "")
- print (path, garbage)
- path, garbage = splitattr(path or "")
- print (path, garbage)
+ garbage, path = splittype(url)
+ print (garbage, path)
+ garbage, path = splithost(path or "")
+ print (garbage, path)
+ path, garbage = splitquery(path or "")
+ print (path, garbage)
+ path, garbage = splitattr(path or "")
+ print (path, garbage)
suffix = os.path.splitext(path)[1]
filename = tempfile.mktemp(suffix)
self.__tempfiles.append(filename)