[Python-bugs-list] [ python-Bugs-634422 ] global name 'name' is not defined

noreply@sourceforge.net noreply@sourceforge.net
Wed, 06 Nov 2002 15:02:19 -0800


Bugs item #634422, was opened at 2002-11-06 08:35
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=634422&group_id=5470

Category: Python Library
Group: Python 2.3
>Status: Closed
>Resolution: Fixed
Priority: 6
Submitted By: Martin v. Löwis (loewis)
>Assigned to: A.M. Kuchling (akuchling)
Summary: global name 'name' is not defined

Initial Comment:
It appears rev. 1.36 introduced a new error, I get

  File "/usr/local/lib/python2.3/urllib2.py", line 324,
in open
    '_open', req)
  File "/usr/local/lib/python2.3/urllib2.py", line 303,
in _call_chain
    result = func(*args)
  File "/usr/local/lib/python2.3/urllib2.py", line 793,
in http_open
    return self.do_open(httplib.HTTP, req)
  File "/usr/local/lib/python2.3/urllib2.py", line 774,
in do_open
    if name not in req.headers:
NameError: global name 'name' is not defined


----------------------------------------------------------------------

>Comment By: Neal Norwitz (nnorwitz)
Date: 2002-11-06 18:02

Message:
Logged In: YES 
user_id=33168

amk checked in 1.38 to fix this problem.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=634422&group_id=5470