This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author therve
Recipients therve
Date 2008-05-04.17:57:27
SpamBayes Score 0.0007225589
Marked as misclassified No
Message-id <1209923849.77.0.999973042575.issue2760@psf.upfronthosting.co.za>
In-reply-to
Content
The problematic change is here:
http://svn.python.org/view/python/trunk/Lib/socket.py?rev=62627&r1=61008&r2=62627

The following script shows the problem:


Python 2.6a2+ (trunk:62707, May  4 2008, 19:13:44) 
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib2
>>> r = urllib2.Request('http://pypi.python.org/simple')
>>> f = urllib2.urlopen(r)
>>> f.read()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/therve/.local/lib/python2.6/socket.py", line 326, in read
data = self._sock.recv(rbufsize)
  File "/home/therve/.local/lib/python2.6/httplib.py", line 512, in read
return self._read_chunked(amt)
  File "/home/therve/.local/lib/python2.6/httplib.py", line 548, in
_read_chunked
line = self.fp.readline()
  File "/home/therve/.local/lib/python2.6/socket.py", line 391, in readline
assert buf.tell() == 0
AssertionError
>>>
History
Date User Action Args
2008-05-04 17:57:30thervesetspambayes_score: 0.000722559 -> 0.0007225589
recipients: + therve
2008-05-04 17:57:29thervesetspambayes_score: 0.000722559 -> 0.000722559
messageid: <1209923849.77.0.999973042575.issue2760@psf.upfronthosting.co.za>
2008-05-04 17:57:29thervelinkissue2760 messages
2008-05-04 17:57:27thervecreate