Message123059
| 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:47 | v+python | set | recipients:
+ v+python |
| 2010年12月02日 07:02:47 | v+python | set | messageid: <1291273367.17.0.253731671169.issue10482@psf.upfronthosting.co.za> |
| 2010年12月02日 07:02:46 | v+python | link | issue10482 messages |
| 2010年12月02日 07:02:46 | v+python | create |
|