How do you FTP ASCII if ftplib strips CR?
David Bolen
db3l at fitlinxx.com
Tue Jun 13 16:11:01 EDT 2000
David Bolen <db3l at fitlinxx.com> writes:
Whoops - I let a cut 'n paste typo slip through in my last post - change:
> class AsciiFile:
> import os
>
> def __init__(self,name=None,mode=''):
to
def __init__(self,name=None,mode='w'):
since it's really intended for an output file class, and without some
default mode the 'b' addition later could cause an error.
--
-- David
--
/-----------------------------------------------------------------------\
\ David Bolen \ E-mail: db3l at fitlinxx.com /
| FitLinxx, Inc. \ Phone: (203) 708-5192 |
/ 860 Canal Street, Stamford, CT 06902 \ Fax: (203) 316-5150 \
\-----------------------------------------------------------------------/
More information about the Python-list
mailing list