Message78763
I added the following two lines and I was able to run the code.
Before:
line = fp.readline()
if self.debugging > 2: print('*retr*', repr(line))
if not line:
break
if line[-2:] == CRLF:
line = line[:-2]
elif line[-1:] == '\n':
line = line[:-1]
callback(line)
After:
line = fp.readline()
if self.debugging > 2: print('*retr*', repr(line))
if not line:
break
if line == '':
break
if line[-2:] == CRLF:
line = line[:-2]
elif line[-1:] == '\n':
line = line[:-1]
callback(line)
As a patch:
426,427d425
< if line == '':
< break
What else do I need to do? |
|
Date |
User |
Action |
Args |
2009-01-02 06:50:18 | chris.mahan | set | recipients:
+ chris.mahan, vstinner, ajaksu2 |
2009-01-02 06:50:18 | chris.mahan | set | messageid: <1230879018.47.0.43911067427.issue4791@psf.upfronthosting.co.za> |
2009-01-02 06:50:17 | chris.mahan | link | issue4791 messages |
2009-01-02 06:50:17 | chris.mahan | create | |
|