Commit 17bf0825 authored by Benjamin Peterson's avatar Benjamin Peterson

fix syntax in ctypes.util

parent d746768d
...@@ -104,7 +104,7 @@ elif os.name == "posix": ...@@ -104,7 +104,7 @@ elif os.name == "posix":
if e.errno != errno.ENOENT: if e.errno != errno.ENOENT:
raise raise
if rv == 10: if rv == 10:
raise OSError, 'gcc or cc command not found' raise OSError('gcc or cc command not found')
res = re.search(expr, trace) res = re.search(expr, trace)
if not res: if not res:
return None return None
...@@ -137,7 +137,7 @@ elif os.name == "posix": ...@@ -137,7 +137,7 @@ elif os.name == "posix":
dump = f.read() dump = f.read()
rv = f.close() rv = f.close()
if rv == 10: if rv == 10:
raise OSError, 'objdump command not found' raise OSError('objdump command not found')
f = os.popen(cmd) f = os.popen(cmd)
try: try:
data = f.read() data = f.read()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment