Changeset 3770

Show
Ignore:
Timestamp:
12/05/07 02:17:35 (1 year ago)
Author:
ed
Message:

Reverted the recent change of the .startswith() method of strings that is only available in Python 2.5 or later.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ide/ClassDesignerComponents.py

    r3760 r3770  
    162162            if not prop in ("Alignment", "Caption", "DataField", "DataSource", 
    163163                    "FontFace", "HAlign", "Name", "RegID", "SelectionMode", 
    164                     "ToolTipText", "VAlign", "Value") and ( 
    165                     not prop.startswith(("Border", "Header", "Sizer_"))): 
     164                    "ToolTipText", "VAlign", "Value") and (not prop.startswith("Border") 
     165                    and not prop.startswith("Header") and not prop.startswith("Sizer_")): 
    166166                if isinstance(val, basestring) and os.path.exists(val): 
    167167                    # It's a path; convert it to a relative path