You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Fix a small default-value bug
This commit is contained in:
@@ -65,6 +65,7 @@ The node position 0 will be associated with "import".
|
|||||||
|
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
from bisect import bisect_right
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
@@ -2122,9 +2123,6 @@ def code_deparse(
|
|||||||
return deparsed
|
return deparsed
|
||||||
|
|
||||||
|
|
||||||
from bisect import bisect_right
|
|
||||||
|
|
||||||
|
|
||||||
def find_gt(a, x):
|
def find_gt(a, x):
|
||||||
"Find leftmost value greater than x"
|
"Find leftmost value greater than x"
|
||||||
i = bisect_right(a, x)
|
i = bisect_right(a, x)
|
||||||
@@ -2138,8 +2136,8 @@ def code_deparse_around_offset(
|
|||||||
offset,
|
offset,
|
||||||
co,
|
co,
|
||||||
out=StringIO(),
|
out=StringIO(),
|
||||||
version=Optional[tuple],
|
version: Optional[tuple] = None,
|
||||||
is_pypy=None,
|
is_pypy: bool = False,
|
||||||
debug_opts=DEFAULT_DEBUG_OPTS,
|
debug_opts=DEFAULT_DEBUG_OPTS,
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
|
Reference in New Issue
Block a user