mirror of https://github.com/python/cpython.git
fix syntax in ctypes.util
This commit is contained in:
parent
d746768d3a
commit
17bf0825bd
|
@ -104,7 +104,7 @@ def _findLib_gcc(name):
|
|||
if e.errno != errno.ENOENT:
|
||||
raise
|
||||
if rv == 10:
|
||||
raise OSError, 'gcc or cc command not found'
|
||||
raise OSError('gcc or cc command not found')
|
||||
res = re.search(expr, trace)
|
||||
if not res:
|
||||
return None
|
||||
|
@ -137,7 +137,7 @@ def _get_soname(f):
|
|||
dump = f.read()
|
||||
rv = f.close()
|
||||
if rv == 10:
|
||||
raise OSError, 'objdump command not found'
|
||||
raise OSError('objdump command not found')
|
||||
f = os.popen(cmd)
|
||||
try:
|
||||
data = f.read()
|
||||
|
|
Loading…
Reference in New Issue