Message16423
The following statement is occasionally generating
AssertionErrors:
current_page = urllib.urlopen(action,data).read()
Traceback (most recent call last):
File "/Users/zen/bin/autospamrep.py", line 161, in ?
current_page = handle_spamcop_page(current_page)
File "/Users/zen/bin/autospamrep.py", line 137, in
handle_spamcop_page
current_page = urllib.urlopen(action,data).read()
File "/sw/lib/python2.3/httplib.py", line 1150, in read
assert not self._line_consumed and self._line_left
Fix may be to do the following in
LineAndFileWrapper.__init__ (last two lines are new):
def __init__(self, line, file):
self._line = line
self._file = file
self._line_consumed = 0
self._line_offset = 0
self._line_left = len(line)
if not self._line_left:
self._done()
|
|
Date |
User |
Action |
Args |
2007-08-23 14:13:56 | admin | link | issue755080 messages |
2007-08-23 14:13:56 | admin | create | |
|