mirror of
https://github.com/syssec-utd/pylingual.git
synced 2026-05-10 18:39:03 -07:00
Update cflow.py
This commit is contained in:
committed by
Joel-Flores123
parent
909657ffbe
commit
aa28e2f4d2
@@ -36,7 +36,7 @@ class Result(Enum):
|
|||||||
def edit_pyc_lines(pyc: PYCFile, src_lines: list[str]):
|
def edit_pyc_lines(pyc: PYCFile, src_lines: list[str]):
|
||||||
if pyc.version == (3, 10):
|
if pyc.version == (3, 10):
|
||||||
pyc.replace_duplicated_returns10(src_lines)
|
pyc.replace_duplicated_returns10(src_lines)
|
||||||
elif pyc.version == (3, 12):
|
elif pyc.version >= (3, 12):
|
||||||
pyc.replace_duplicated_returns12(src_lines)
|
pyc.replace_duplicated_returns12(src_lines)
|
||||||
seen_lines = set()
|
seen_lines = set()
|
||||||
# multiple instructions can start the same lno, but the segmentation model will only assign the lno to the first one
|
# multiple instructions can start the same lno, but the segmentation model will only assign the lno to the first one
|
||||||
|
|||||||
Reference in New Issue
Block a user