| Index: Lib/trace.py |
| =================================================================== |
| --- Lib/trace.py (revision 70087) |
| +++ Lib/trace.py (working copy) |
| @@ -377,7 +377,8 @@ |
| """Return dict where keys are lines in the line number table.""" |
| linenos = {} |
| - line_increments = [ord(c) for c in code.co_lnotab[1::2]] |
| + line_increments = [c if c < 128 else c - 256 |
| + for c in map(ord, code.co_lnotab[1::2])] |
| table_length = len(line_increments) |
| docstring = False |