diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2018-10-02 18:54:15 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2018-10-06 12:20:03 -0400 |
| commit | ccc92dd34dfb4fcb0a2696c5e6cb534e4123c0e9 (patch) | |
| tree | d6d2a146401e42149a4973eeb8b285ba169a5779 | |
| parent | 7043e3ee5cfc85acbab79f6449e95c8cb354a1f2 (diff) | |
| download | python-coveragepy-git-ccc92dd34dfb4fcb0a2696c5e6cb534e4123c0e9.tar.gz | |
Python 3.6 changed lnotab to signed bytes
(cherry picked from commit 5aca5af02423f37ec7f4a3a02849e74c54b5ccf1)
| -rw-r--r-- | coverage/parser.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/coverage/parser.py b/coverage/parser.py index 6e6cccd5..849d0e33 100644 --- a/coverage/parser.py +++ b/coverage/parser.py @@ -409,6 +409,8 @@ class ByteParser(object): yield (byte_num, line_num) last_line_num = line_num byte_num += byte_incr + if env.PYVERSION >= (3, 6) and line_incr >= 0x80: + line_incr -= 0x100 line_num += line_incr if line_num != last_line_num: yield (byte_num, line_num) |
