Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Lib/distutils/emxccompiler.py

    r21 r391  
    2020# * EMX gcc 2.81/EMX 0.9d fix03
    2121
    22 __revision__ = "$Id: emxccompiler.py 34786 2003-12-02 12:17:59Z aimacintyre $"
     22__revision__ = "$Id$"
    2323
    2424import os,sys,copy
     
    264264        # But we do this only once, and it is fast enough
    265265        f = open(fn)
    266         s = f.read()
    267         f.close()
     266        try:
     267            s = f.read()
     268        finally:
     269            f.close()
    268270
    269271    except IOError, exc:
     
    292294    if gcc_exe:
    293295        out = os.popen(gcc_exe + ' -dumpversion','r')
    294         out_string = out.read()
    295         out.close()
     296        try:
     297            out_string = out.read()
     298        finally:
     299            out.close()
    296300        result = re.search('(\d+\.\d+\.\d+)',out_string)
    297301        if result:
Note: See TracChangeset for help on using the changeset viewer.