From ce36ad8a467d914eb5c91f33835b9eaea18ee93b Mon Sep 17 00:00:00 2001 From: Collin Winter Date: Thu, 30 Aug 2007 01:19:48 +0000 Subject: Raise statement normalization in Lib/. --- Lib/codeop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/codeop.py') diff --git a/Lib/codeop.py b/Lib/codeop.py index 6abde2ede5..780c86203d 100644 --- a/Lib/codeop.py +++ b/Lib/codeop.py @@ -96,7 +96,7 @@ def _maybe_compile(compiler, source, filename, symbol): if code: return code if not code1 and repr(err1) == repr(err2): - raise SyntaxError, err1 + raise SyntaxError(err1) def _compile(source, filename, symbol): return compile(source, filename, symbol, PyCF_DONT_IMPLY_DEDENT) -- cgit v1.2.1