From 8d457c78b4bdaab7aab18ae91e8bc5f5e7484ba4 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 26 Jun 2005 22:01:35 +0000 Subject: [PATCH] bug [ 1175848 ] poorly named variable in urllib2.py --- Lib/urllib2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/urllib2.py b/Lib/urllib2.py index 3d8d593c908..13c1f1e5a7d 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 = {}