You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Add Python 3.6.3 scanner lookup
This commit is contained in:
@@ -320,5 +320,6 @@ if __name__ == "__main__":
|
|||||||
import inspect, uncompyle6
|
import inspect, uncompyle6
|
||||||
co = inspect.currentframe().f_code
|
co = inspect.currentframe().f_code
|
||||||
scanner = get_scanner('2.7.13', True)
|
scanner = get_scanner('2.7.13', True)
|
||||||
|
scanner = get_scanner(sys.version[:5], False)
|
||||||
scanner = get_scanner(uncompyle6.PYTHON_VERSION, IS_PYPY, True)
|
scanner = get_scanner(uncompyle6.PYTHON_VERSION, IS_PYPY, True)
|
||||||
tokens, customize = scanner.ingest(co, {})
|
tokens, customize = scanner.ingest(co, {})
|
||||||
|
@@ -134,6 +134,7 @@ class FragmentsWalker(pysource.SourceWalker, object):
|
|||||||
# FIXME: is there a better way?
|
# FIXME: is there a better way?
|
||||||
global MAP_DIRECT_FRAGMENT
|
global MAP_DIRECT_FRAGMENT
|
||||||
MAP_DIRECT_FRAGMENT = dict(TABLE_DIRECT, **TABLE_DIRECT_FRAGMENT),
|
MAP_DIRECT_FRAGMENT = dict(TABLE_DIRECT, **TABLE_DIRECT_FRAGMENT),
|
||||||
|
return
|
||||||
|
|
||||||
f = property(lambda s: s.params['f'],
|
f = property(lambda s: s.params['f'],
|
||||||
lambda s, x: s.params.__setitem__('f', x),
|
lambda s, x: s.params.__setitem__('f', x),
|
||||||
|
Reference in New Issue
Block a user