Changeset 1004:33cb5f221305


Ignore:
Timestamp:
Dec 25, 2010, 12:14:31 AM (11 years ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Use punctuation according to PEP 8.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ftp_stat.py

    r1000 r1004  
    421421                  "550 %s: no such directory or wrong directory parser used" %
    422422                  path)
    423         # Set up for `for` loop
     423        # Set up for `for` loop.
    424424        lines = self._host_dir(path)
    425         # Exit the method now if there aren't any files
     425        # Exit the method now if there aren't any files.
    426426        if lines == ['']:
    427427            return []
     
    488488            loop_path = self._path.join(dirname, stat_result._st_name)
    489489            self._lstat_cache[loop_path] = stat_result
    490             # Needed to work without cache or with disabled cache
     490            # Needed to work without cache or with disabled cache.
    491491            if stat_result._st_name == basename:
    492492                lstat_result_for_path = stat_result
    493493        if lstat_result_for_path is not None:
    494494            return lstat_result_for_path
    495         # Path was not found during the loop
     495        # Path was not found during the loop.
    496496        if _exception_for_missing_path:
    497497            #TODO Use FTP DIR command on the file to implicitly use
Note: See TracChangeset for help on using the changeset viewer.