diff options
author | Tim Peters <tim.peters@gmail.com> | 2004-08-26 05:23:19 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2004-08-26 05:23:19 (GMT) |
commit | 66cb018c96e49b5e5cf1b8fc395171a223d86d8e (patch) | |
tree | 7cedb1e491d755e7ce25a84f6b3d590d336d631b /Lib/test/test_peepholer.py | |
parent | 5b799c1f3d1e96e2d45737bed95a149d356ad5de (diff) | |
download | cpython-66cb018c96e49b5e5cf1b8fc395171a223d86d8e.zip cpython-66cb018c96e49b5e5cf1b8fc395171a223d86d8e.tar.gz cpython-66cb018c96e49b5e5cf1b8fc395171a223d86d8e.tar.bz2 |
Whitespace normalization.
Diffstat (limited to 'Lib/test/test_peepholer.py')
-rw-r--r-- | Lib/test/test_peepholer.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_peepholer.py b/Lib/test/test_peepholer.py index 6c1900d..33eb0f5 100644 --- a/Lib/test/test_peepholer.py +++ b/Lib/test/test_peepholer.py @@ -42,8 +42,8 @@ class TestTranforms(unittest.TestCase): def test_none_as_constant(self): # LOAD_GLOBAL None --> LOAD_CONST None def f(x): - None - return x + None + return x asm = disassemble(f) for elem in ('LOAD_GLOBAL',): self.assert_(elem not in asm) @@ -53,9 +53,9 @@ class TestTranforms(unittest.TestCase): def test_while_one(self): # Skip over: LOAD_CONST trueconst JUMP_IF_FALSE xx POP_TOP def f(): - while 1: - pass - return list + while 1: + pass + return list asm = disassemble(f) for elem in ('LOAD_CONST', 'JUMP_IF_FALSE'): self.assert_(elem not in asm) |