]> granicus.if.org Git - python/commitdiff
fix syntax in ctypes.util
authorBenjamin Peterson <benjamin@python.org>
Sat, 10 Jan 2009 22:37:11 +0000 (22:37 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sat, 10 Jan 2009 22:37:11 +0000 (22:37 +0000)
Lib/ctypes/util.py

index 78f4ce314926c279304ae7e86b452fe2fa7dd132..37e4b037ec4e29a1aec3408459ed6cb13486e186 100644 (file)
@@ -104,7 +104,7 @@ elif os.name == "posix":
                 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 @@ elif os.name == "posix":
             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()