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 v+python
Recipients v+python
Date 2010-12-02.07:02:46
SpamBayes Score 0.020618886
Marked as misclassified No
Message-id <1291273367.17.0.253731671169.issue10482@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry, left some extraneous code in the last message, here is the right code:

    def _writerthread(self, fhr, fhw, length=None):
        if length is None:
            flag = True
            while flag:
                buf = fhr.read( 512 )
                fhw.write( buf )
                if len( buf ) == 0:
                    flag = False
        else:
            while length > 0:
                buf = fhr.read( min( 512, length ))
                fhw.write( buf )
                length -= len( buf )
        fhw.close()
History
Date User Action Args
2010-12-02 07:02:47v+pythonsetrecipients: + v+python
2010-12-02 07:02:47v+pythonsetmessageid: <1291273367.17.0.253731671169.issue10482@psf.upfronthosting.co.za>
2010-12-02 07:02:46v+pythonlinkissue10482 messages
2010-12-02 07:02:46v+pythoncreate