summaryrefslogtreecommitdiffstats
path: root/Lib/urllib.py
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-05-01 08:06:38 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2010-05-01 08:06:38 (GMT)
commitfcfd25bd72cb6b77acd717138104a392f992089f (patch)
treeab0c58bf54e11cf6c0db27984cea4f206ce1777a /Lib/urllib.py
parent838c1ee1579ec32a81478e688fcd2d2751a8cc01 (diff)
downloadcpython-fcfd25bd72cb6b77acd717138104a392f992089f.zip
cpython-fcfd25bd72cb6b77acd717138104a392f992089f.tar.gz
cpython-fcfd25bd72cb6b77acd717138104a392f992089f.tar.bz2
Merged revisions 80675 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r80675 | senthil.kumaran | 2010-05-01 13:31:56 +0530 (Sat, 01 May 2010) | 3 lines Fix issue8582: urllib.urlretrieve fails with ValueError: Invalid format string ........
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 e12d981..70900cd 100644
--- a/Lib/urllib.py
+++ b/Lib/urllib.py
@@ -592,7 +592,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':