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 chris.mahan
Recipients ajaksu2, chris.mahan, vstinner
Date 2009-01-02.06:50:17
SpamBayes Score 0.0016354771
Marked as misclassified No
Message-id <1230879018.47.0.43911067427.issue4791@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2009-01-02 06:50:18chris.mahansetrecipients: + chris.mahan, vstinner, ajaksu2
2009-01-02 06:50:18chris.mahansetmessageid: <1230879018.47.0.43911067427.issue4791@psf.upfronthosting.co.za>
2009-01-02 06:50:17chris.mahanlinkissue4791 messages
2009-01-02 06:50:17chris.mahancreate