Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0454b51

Browse files
committed
Oops, pulled over by the tab police :-)
1 parent b5916ab commit 0454b51

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

Lib/urllib.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def retrieve(self, url, filename=None):
178178
if not filename and (not type or type == 'file'):
179179
try:
180180
fp = self.open_local_file(url1)
181-
hdrs = fp.info()
181+
hdrs = fp.info()
182182
del fp
183183
return url2pathname(splithost(url1)[1]), hdrs
184184
except IOError, msg:
@@ -187,14 +187,14 @@ def retrieve(self, url, filename=None):
187187
headers = fp.info()
188188
if not filename:
189189
import tempfile
190-
garbage, path = splittype(url)
191-
print (garbage, path)
192-
garbage, path = splithost(path or "")
193-
print (garbage, path)
194-
path, garbage = splitquery(path or "")
195-
print (path, garbage)
196-
path, garbage = splitattr(path or "")
197-
print (path, garbage)
190+
garbage, path = splittype(url)
191+
print (garbage, path)
192+
garbage, path = splithost(path or "")
193+
print (garbage, path)
194+
path, garbage = splitquery(path or "")
195+
print (path, garbage)
196+
path, garbage = splitattr(path or "")
197+
print (path, garbage)
198198
suffix = os.path.splitext(path)[1]
199199
filename = tempfile.mktemp(suffix)
200200
self.__tempfiles.append(filename)

0 commit comments

Comments
 (0)