From 17bf0825bddf7ffb780ac4d96f98b1b2ea1d76c5 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 10 Jan 2009 22:37:11 +0000 Subject: [PATCH] fix syntax in ctypes.util --- Lib/ctypes/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/ctypes/util.py b/Lib/ctypes/util.py index 78f4ce31492..37e4b037ec4 100644 --- a/Lib/ctypes/util.py +++ b/Lib/ctypes/util.py @@ -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()