From f6c456d32308158f3f68c3de838f3b4666fe15da Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Sat, 1 May 2010 08:29:18 +0000 Subject: 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 ........ --- Lib/urllib/request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/urllib/request.py') diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py index ee819c3336..ff871f9d9a 100644 --- a/Lib/urllib/request.py +++ b/Lib/urllib/request.py @@ -1779,7 +1779,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': -- cgit v1.2.1