summaryrefslogtreecommitdiff
path: root/Lib/urllib2.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2005-06-26 22:01:35 +0000
committerGeorg Brandl <georg@python.org>2005-06-26 22:01:35 +0000
commitf5a5ffc5d9791ccbb84ef732caea63b2074261c2 (patch)
tree925102818a6d89db18930ad4b6eff678d6cd45af /Lib/urllib2.py
parent5412b4d04f4987275088b0350e1ee29190bd9140 (diff)
downloadcpython-f5a5ffc5d9791ccbb84ef732caea63b2074261c2.tar.gz
bug [ 1175848 ] poorly named variable in urllib2.py
Diffstat (limited to 'Lib/urllib2.py')
-rw-r--r--Lib/urllib2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/urllib2.py b/Lib/urllib2.py
index 3d8d593c90..13c1f1e5a7 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 = {}