From 6e8128f02e1d36e38e5866f9dc36e051caa47bc9 Mon Sep 17 00:00:00 2001 From: Mark Shannon Date: Thu, 30 Jul 2020 10:03:00 +0100 Subject: bpo-41323: Perform 'peephole' optimizations directly on the CFG. (GH-21517) * Move 'peephole' optimizations into compile.c and perform them directly on the CFG. --- Lib/test/test_dis.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Lib/test/test_dis.py') diff --git a/Lib/test/test_dis.py b/Lib/test/test_dis.py index ac5836d288..4533a016a2 100644 --- a/Lib/test/test_dis.py +++ b/Lib/test/test_dis.py @@ -360,8 +360,6 @@ dis_tryfinally = """\ 16 CALL_FUNCTION 0 18 POP_TOP 20 RERAISE - 22 LOAD_CONST 0 (None) - 24 RETURN_VALUE """ % (_tryfinally.__code__.co_firstlineno + 1, _tryfinally.__code__.co_firstlineno + 2, _tryfinally.__code__.co_firstlineno + 4, @@ -385,8 +383,6 @@ dis_tryfinallyconst = """\ 16 CALL_FUNCTION 0 18 POP_TOP 20 RERAISE - 22 LOAD_CONST 0 (None) - 24 RETURN_VALUE """ % (_tryfinallyconst.__code__.co_firstlineno + 1, _tryfinallyconst.__code__.co_firstlineno + 2, _tryfinallyconst.__code__.co_firstlineno + 4, -- cgit v1.2.1