Merge branch 'python-3.3-to-3.5' into python-2.4

This commit is contained in:
rocky
2022-05-14 10:43:42 -04:00
39 changed files with 2160 additions and 357 deletions

View File

@@ -228,10 +228,7 @@ class Scanner(object):
# Offset: lineno pairs, only for offsets which start line.
# Locally we use list for more convenient iteration using indices
if self.version > (1, 4):
linestarts = list(self.opc.findlinestarts(code_obj))
else:
linestarts = [[0, 1]]
linestarts = list(self.opc.findlinestarts(code_obj))
self.linestarts = dict(linestarts)
# 'List-map' which shows line number of current op and offset of