]> granicus.if.org Git - python/commitdiff
bug [ 1175848 ] poorly named variable in urllib2.py
authorGeorg Brandl <georg@python.org>
Sun, 26 Jun 2005 22:01:35 +0000 (22:01 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 26 Jun 2005 22:01:35 +0000 (22:01 +0000)
Lib/urllib2.py

index 3d8d593c908cdec1298f2c898f27cfee31f01fa7..13c1f1e5a7da9fa430799e8af6656f7fade39842 100644 (file)
@@ -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 = {}