Changeset 243

Show
Ignore:
Timestamp:
2003-06-09 12:34:09 (6 years ago)
Author:
schwa
Message:
_FTPFile.writelines: Added comment on (not) modifying `lines` in-place.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ftp_file.py

    r242 r243  
    3434""" 
    3535 
    36 # $Id: ftp_file.py,v 1.5 2003/06/09 12:32:00 schwa Exp $ 
     36# $Id: ftp_file.py,v 1.6 2003/06/09 12:34:09 schwa Exp $ 
    3737 
    3838import ftp_error 
     
    197197            self._fo.writelines(lines) 
    198198            return 
     199        # we can't modify the list of lines in-place, as in the 
     200        #  `readlines` method; that would modify the original list, 
     201        #  given as argument `lines` 
    199202        for line in lines: 
    200203            self._fo.write( _python_to_crlf_linesep(line) )