diff options
author | Guido van Rossum <guido@python.org> | 2007-03-19 17:56:01 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-03-19 17:56:01 (GMT) |
commit | d16e81aabe5448a90640694d57cdaefddf3a1a9f (patch) | |
tree | 1d422ec1ee0944f60ceedd91f69af4034cb170e6 /Lib/test/test_compiler.py | |
parent | 801dd736531f7d6db57a1dab80fe6daa37e0a0b0 (diff) | |
download | cpython-d16e81aabe5448a90640694d57cdaefddf3a1a9f.zip cpython-d16e81aabe5448a90640694d57cdaefddf3a1a9f.tar.gz cpython-d16e81aabe5448a90640694d57cdaefddf3a1a9f.tar.bz2 |
Fix the compiler package w.r.t. the new metaclass syntax.
(It is still broken w.r.t. the new nonlocal keyword.)
Remove a series of debug prints I accidentally left in test_ast.py.
Diffstat (limited to 'Lib/test/test_compiler.py')
-rw-r--r-- | Lib/test/test_compiler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_compiler.py b/Lib/test/test_compiler.py index 8535f42..4fb6cc1 100644 --- a/Lib/test/test_compiler.py +++ b/Lib/test/test_compiler.py @@ -50,8 +50,8 @@ class CompilerTest(unittest.TestCase): try: compiler.compile(buf, basename, "exec") except Exception as e: - args = list(e.args) - args[0] += "[in file %s]" % basename + args = list(e.args) or [""] + args[0] = "%s [in file %s]" % (args[0], basename) e.args = tuple(args) raise |