Changeset 257

Show
Ignore:
Timestamp:
2003-06-09 18:00:13 (6 years ago)
Author:
schwa
Message:
Module: Renamed `_Stat` to `_StatResult`.
Files:

Legend:

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

    r254 r257  
    3434""" 
    3535 
    36 # $Id: ftp_stat.py,v 1.8 2003/06/09 17:22:57 schwa Exp $ 
     36# $Id: ftp_stat.py,v 1.9 2003/06/09 18:00:13 schwa Exp $ 
    3737 
    3838import stat 
     
    4444 
    4545if sys.version_info[:2] >= (2, 2): 
    46     _StatBase = tuple 
     46    _StatResultBase = tuple 
    4747else: 
    4848    import UserTuple 
    49     _StatBase = UserTuple.UserTuple 
    50  
    51  
    52 class _Stat(_StatBase): 
     49    _StatResultBase = UserTuple.UserTuple 
     50 
     51 
     52class _StatResult(_StatResultBase): 
    5353    """ 
    5454    Support class resembling a tuple like that returned from 
     
    165165        else: 
    166166            st_name, st_target = name, None 
    167         stat_result = _Stat( (st_mode, st_ino, st_dev, st_nlink, st_uid, 
    168                               st_gid, st_size, st_atime, st_mtime, st_ctime) ) 
     167        stat_result = _StatResult( 
     168                      (st_mode, st_ino, st_dev, st_nlink, st_uid, 
     169                       st_gid, st_size, st_atime, st_mtime, st_ctime) ) 
    169170        stat_result._st_name = st_name 
    170171        stat_result._st_target = st_target 
     
    224225        # st_ctime 
    225226        st_ctime = None 
    226         stat_result = _Stat( (st_mode, st_ino, st_dev, st_nlink, st_uid, 
    227                               st_gid, st_size, st_atime, st_mtime, st_ctime) ) 
     227        stat_result = _StatResult( 
     228                      (st_mode, st_ino, st_dev, st_nlink, st_uid, 
     229                       st_gid, st_size, st_atime, st_mtime, st_ctime) ) 
    228230        # _st_name and _st_target 
    229231        stat_result._st_name = name