From: Georg Brandl Date: Sun, 26 Jun 2005 22:01:35 +0000 (+0000) Subject: bug [ 1175848 ] poorly named variable in urllib2.py X-Git-Tag: v2.5a0~1645 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8d457c78b4bdaab7aab18ae91e8bc5f5e7484ba4;p=thirdparty%2FPython%2Fcpython.git bug [ 1175848 ] poorly named variable in urllib2.py --- diff --git a/Lib/urllib2.py b/Lib/urllib2.py index 3d8d593c908c..13c1f1e5a7da 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py @@ -277,8 +277,8 @@ class Request: class OpenerDirector: def __init__(self): - server_version = "Python-urllib/%s" % __version__ - self.addheaders = [('User-agent', server_version)] + client_version = "Python-urllib/%s" % __version__ + self.addheaders = [('User-agent', client_version)] # manage the individual handlers self.handlers = [] self.handle_open = {}