Fix issue8582: urllib.urlretrieve fails with ValueError: Invalid format string

This commit is contained in:
Senthil Kumaran 2010-05-01 08:01:56 +00:00
parent d3b6022d0a
commit 1b7f9e53b3
2 changed files with 14 additions and 1 deletions

View file

@ -588,7 +588,7 @@ class URLopener:
else:
encoding = ''
msg = []
msg.append('Date: %s'%time.strftime('%a, %d %b %Y %T GMT',
msg.append('Date: %s'%time.strftime('%a, %d %b %Y %H:%M:%S GMT',
time.gmtime(time.time())))
msg.append('Content-type: %s' % type)
if encoding == 'base64':