Changeset 426

Show
Ignore:
Timestamp:
Mon Feb 18 07:49:15 2008
Author:
naufraghi
Message:

Catch SyntaxError? too

Files:

Legend:

Unmodified
Added
Removed
Modified
  • branches/python2.5/Configure.py

    r376 r426  
    26 26 try:  
    27 27     config = eval(open(configfile, 'r').read())  
    28   except IOError:  
      28 except IOError, SyntaxError:  
      29     # IOerror: file not present  
      30     # SyntaxError: invalid file (platform change?)  
    29 31     config = {'useELFEXE':1}    # if not set by Make.py we can assume Windows  
      32      
    30 33  
    31 34 # Save Python version, to detect and avoid conflicts