From: Benjamin Peterson Date: Sat, 10 Jan 2009 22:37:11 +0000 (+0000) Subject: fix syntax in ctypes.util X-Git-Tag: v3.1a1~530 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=17bf0825bddf7ffb780ac4d96f98b1b2ea1d76c5;p=python fix syntax in ctypes.util --- diff --git a/Lib/ctypes/util.py b/Lib/ctypes/util.py index 78f4ce3149..37e4b037ec 100644 --- a/Lib/ctypes/util.py +++ b/Lib/ctypes/util.py @@ -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()