Changeset 254
- Timestamp:
- 2003-06-09 17:22:57 (6 years ago)
- Files:
-
- trunk/ftp_stat.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ftp_stat.py
r252 r254 34 34 """ 35 35 36 # $Id: ftp_stat.py,v 1. 7 2003/06/09 16:52:57 schwa Exp $36 # $Id: ftp_stat.py,v 1.8 2003/06/09 17:22:57 schwa Exp $ 37 37 38 38 import stat … … 81 81 raise NotImplementedError("must be defined by subclass") 82 82 83 def parse_ directory_listing(self, listing):83 def parse_lines(self, lines): 84 84 """ 85 85 Return a list of `_Stat` objects with one `_Stat` object per 86 line in the listing. The order of the entries is kept. 87 """ 88 lines = listing.splitlines() 89 stat_results = [ self.parse_line( line.strip() ) 90 for line in lines ] 86 line in the list `lines`. The order of the entries is kept. 87 """ 88 stat_results = [ self.parse_line(line) for line in lines ] 91 89 return stat_results 92 90
