]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Partial backport (only the bugfix) of sf #811294:
authorThomas Heller <theller@ctypes.org>
Fri, 4 Jun 2004 16:13:06 +0000 (16:13 +0000)
committerThomas Heller <theller@ctypes.org>
Fri, 4 Jun 2004 16:13:06 +0000 (16:13 +0000)
dis.disassemble_string() broken.

Lib/dis.py

index f878d11ab911f1bdcf5883c523fcc3d1df3ee0ff..b82a5d4feb95b56f622f293569bdecb87237f1b5 100644 (file)
@@ -137,8 +137,6 @@ def disassemble_string(code, lasti=-1, varnames=None, names=None,
     while i < n:
         c = code[i]
         op = ord(c)
-        if op == opmap['SET_LINENO'] and i > 0:
-            print # Extra blank line
         if i == lasti: print '-->',
         else: print '   ',
         if i in labels: print '>>',