[Python-checkins] r68511 - python/branches/py3k/Lib/ctypes/util.py

benjamin.peterson python-checkins at python.org
Sat Jan 10 23:37:11 CET 2009


Author: benjamin.peterson
Date: Sat Jan 10 23:37:11 2009
New Revision: 68511

Log:
fix syntax in ctypes.util

Modified:
   python/branches/py3k/Lib/ctypes/util.py

Modified: python/branches/py3k/Lib/ctypes/util.py
==============================================================================
--- python/branches/py3k/Lib/ctypes/util.py	(original)
+++ python/branches/py3k/Lib/ctypes/util.py	Sat Jan 10 23:37:11 2009
@@ -104,7 +104,7 @@
                 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 @@
             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()


More information about the Python-checkins mailing list