summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dis.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-08-23 23:37:48 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-08-23 23:37:48 (GMT)
commitfd2d1f7870ec5cd639ab7867a33c6f8628ca1dfb (patch)
treee53476ea480ea8b7c0dd17100ac265c3e8166f40 /Lib/test/test_dis.py
parent08158a0c65c960dfcb2ad19680f215d6a395054d (diff)
downloadcpython-fd2d1f7870ec5cd639ab7867a33c6f8628ca1dfb.zip
cpython-fd2d1f7870ec5cd639ab7867a33c6f8628ca1dfb.tar.gz
cpython-fd2d1f7870ec5cd639ab7867a33c6f8628ca1dfb.tar.bz2
SF Patch #1013667: Cleanup Peepholer Output
* Make a pass to eliminate NOPs. Produce code that is more readable, more compact, and a tiny bit faster. Makes the peepholer more flexible in the scope of allowable transformations. * With Guido's okay, bumped up the magic number so that this patch gets widely exercised before the alpha goes out.
Diffstat (limited to 'Lib/test/test_dis.py')
-rw-r--r--Lib/test/test_dis.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/test/test_dis.py b/Lib/test/test_dis.py
index 6d5e054..985c878 100644
--- a/Lib/test/test_dis.py
+++ b/Lib/test/test_dis.py
@@ -18,8 +18,6 @@ dis_f = """\
%-4d 5 LOAD_CONST 1 (1)
8 RETURN_VALUE
- 9 LOAD_CONST 0 (None)
- 12 RETURN_VALUE
"""%(_f.func_code.co_firstlineno + 1,
_f.func_code.co_firstlineno + 2)