summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2005-06-26 22:01:35 (GMT)
committerGeorg Brandl <georg@python.org>2005-06-26 22:01:35 (GMT)
commit8d457c78b4bdaab7aab18ae91e8bc5f5e7484ba4 (patch)
treea6a7b3a86eaead3d9de0dc370fccb2b0592bd43c /Lib
parent07c81d9074fd72cb6a7ad1548685a87d5a764a09 (diff)
downloadcpython-8d457c78b4bdaab7aab18ae91e8bc5f5e7484ba4.zip
cpython-8d457c78b4bdaab7aab18ae91e8bc5f5e7484ba4.tar.gz
cpython-8d457c78b4bdaab7aab18ae91e8bc5f5e7484ba4.tar.bz2
bug [ 1175848 ] poorly named variable in urllib2.py
Diffstat (limited to 'Lib')
-rw-r--r--Lib/urllib2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/urllib2.py b/Lib/urllib2.py
index 3d8d593..13c1f1e 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 = {}