[issue12676] Bug in http.client
Popa Claudiu
report at bugs.python.org
Mon Aug 1 15:19:34 CEST 2011
New submission from Popa Claudiu <pcmanticore at gmail.com>:
There appears to be used a variable that is not defined in HTTPConnection.send method. The approximate line is 781. How to reproduce:
import http.client
import urllib.parse
c = urllib.parse.urlencode({"user":"claudiu", "password":"1"})
c = http.client.HTTPConnection("192.168.71.38")
c.request("POST", "test", c) # silly, I now.
There should be raised a TypeError here, but instead the error is:
File "C:\Python32\lib\http\client.py", line 781, in send
or an iterable, got %r " % type(it))
NameError: global name 'it' is not defined
----------
components: Library (Lib)
messages: 141504
nosy: Popa.Claudiu
priority: normal
severity: normal
status: open
title: Bug in http.client
versions: Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12676>
_______________________________________
More information about the Python-bugs-list
mailing list