Changeset 653
- Timestamp:
- 2006-11-23 17:25:29 (2 years ago)
- Files:
-
- trunk/ftp_stat.py (modified) (3 diffs)
- trunk/ftputil.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ftp_stat.py
r652 r653 74 74 _total_regex = re.compile(r"^total\s+\d+") 75 75 76 def ignore _line(self, line):76 def ignores_line(self, line): 77 77 """ 78 78 Return a true value if the line should be ignored, i. e. is … … 388 388 names = [] 389 389 for line in lines: 390 if self._parser.ignore _line(line):390 if self._parser.ignores_line(line): 391 391 continue 392 392 # for `listdir`, we are interested in just the names, … … 436 436 lines = self._host_dir(dirname) 437 437 for line in lines: 438 if self._parser.ignore _line(line):438 if self._parser.ignores_line(line): 439 439 continue 440 440 stat_result = self._parser.parse_line(line, trunk/ftputil.py
r647 r653 268 268 269 269 - The parser has to implement two methods, `parse_line` and 270 `ignore _line`. For the latter, there's a probably useful270 `ignores_line`. For the latter, there's a probably useful 271 271 default in the class `ftp_stat.Parser`. 272 272 … … 276 276 a useful error message. 277 277 278 - `ignore _line` should return a true value if the line isn't278 - `ignores_line` should return a true value if the line isn't 279 279 assumed to contain stat information. 280 280 """
