Changeset 641:043663022829


Ignore:
Timestamp:
Nov 25, 2006, 12:35:32 AM (12 years ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Convert:
svn:778c30c8-61e0-0310-89d4-fe2f97a467b2/trunk@671
Message:
Use Python 2.2 style dictionary key test.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ftp_stat.py

    r626 r641  
    128128                             'c': stat.S_IFCHR, '-': stat.S_IFREG}
    129129        file_type = mode_string[0]
    130         if file_type_to_mode.has_key(file_type):
     130        if file_type in file_type_to_mode:
    131131            st_mode = st_mode | file_type_to_mode[file_type]
    132132        else:
Note: See TracChangeset for help on using the changeset viewer.