commit | 1b7f9e53b3dbfb3c97b5e5a768ae4ac4a452f2aa | [log] [tgz] |
---|---|---|
author | Senthil Kumaran <orsenthil@gmail.com> | Sat May 01 08:01:56 2010 +0000 |
committer | Senthil Kumaran <orsenthil@gmail.com> | Sat May 01 08:01:56 2010 +0000 |
tree | ce2cc8a02e9f5f134afe18834f7c6e25d8940a34 | |
parent | d3b6022d0ab24727cd6197657bd6a3488fcd97ff [diff] [blame] |
Fix issue8582: urllib.urlretrieve fails with ValueError: Invalid format string
diff --git a/Lib/urllib.py b/Lib/urllib.py index c74dd3c..652be75 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py
@@ -588,7 +588,7 @@ 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':