Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 17bf082

Browse files
committed
fix syntax in ctypes.util
1 parent d746768 commit 17bf082

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/ctypes/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def _findLib_gcc(name):
104104
if e.errno != errno.ENOENT:
105105
raise
106106
if rv == 10:
107-
raise OSError, 'gcc or cc command not found'
107+
raise OSError('gcc or cc command not found')
108108
res = re.search(expr, trace)
109109
if not res:
110110
return None
@@ -137,7 +137,7 @@ def _get_soname(f):
137137
dump = f.read()
138138
rv = f.close()
139139
if rv == 10:
140-
raise OSError, 'objdump command not found'
140+
raise OSError('objdump command not found')
141141
f = os.popen(cmd)
142142
try:
143143
data = f.read()

0 commit comments

Comments
 (0)