Changeset 391 for python/trunk/Tools/scripts/h2py.py
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Tools/scripts/h2py.py
r2 r391 59 59 except KeyError: 60 60 searchdirs=['/usr/include'] 61 try: 62 searchdirs.insert(0, os.path.join('/usr/include', 63 os.environ['MULTIARCH'])) 64 except KeyError: 65 pass 66 61 67 62 68 def main(): … … 96 102 body = p.sub(' ', body) 97 103 # replace char literals by ord(...) 98 body = p_char.sub( 'ord(\\0)', body)104 body = p_char.sub("ord('\\1')", body) 99 105 # Compute negative hexadecimal constants 100 106 start = 0
Note:
See TracChangeset
for help on using the changeset viewer.