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/Tools/scripts/h2py.py

    r2 r391  
    5959        except KeyError:
    6060            searchdirs=['/usr/include']
     61            try:
     62                searchdirs.insert(0, os.path.join('/usr/include',
     63                                                  os.environ['MULTIARCH']))
     64            except KeyError:
     65                pass
     66
    6167
    6268def main():
     
    96102        body = p.sub(' ', body)
    97103    # replace char literals by ord(...)
    98     body = p_char.sub('ord(\\0)', body)
     104    body = p_char.sub("ord('\\1')", body)
    99105    # Compute negative hexadecimal constants
    100106    start = 0
Note: See TracChangeset for help on using the changeset viewer.