You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
__init__.py lint
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
"""
|
"""
|
||||||
Copyright (c) 2015, 2018, 2021 by Rocky Bernstein
|
Copyright (c) 2015, 2018, 2021-2022 by Rocky Bernstein
|
||||||
Copyright (c) 2000 by hartmut Goebel <h.goebel@crazy-compilers.com>
|
Copyright (c) 2000 by hartmut Goebel <h.goebel@crazy-compilers.com>
|
||||||
Copyright (c) 1999 John Aycock
|
Copyright (c) 1999 John Aycock
|
||||||
|
|
||||||
@@ -36,8 +36,7 @@ if hasattr(sys, "setrecursionlimit"):
|
|||||||
# pyston doesn't have setrecursionlimit
|
# pyston doesn't have setrecursionlimit
|
||||||
sys.setrecursionlimit(5000)
|
sys.setrecursionlimit(5000)
|
||||||
|
|
||||||
import uncompyle6.semantics.pysource
|
from uncompyle6.semantics import fragments, pysource
|
||||||
import uncompyle6.semantics.fragments
|
|
||||||
|
|
||||||
# Export some functions
|
# Export some functions
|
||||||
from uncompyle6.main import decompile_file # noqa
|
from uncompyle6.main import decompile_file # noqa
|
||||||
@@ -45,5 +44,13 @@ from uncompyle6.main import decompile_file # noqa
|
|||||||
# Convenience functions so you can say:
|
# Convenience functions so you can say:
|
||||||
# from uncompyle6 import (code_deparse, deparse_code2str)
|
# from uncompyle6 import (code_deparse, deparse_code2str)
|
||||||
|
|
||||||
deparse_code2str = uncompyle6.semantics.pysource.deparse_code2str
|
from uncompyle6.semantics.pysource import code_deparse, deparse_code2str
|
||||||
code_deparse = uncompyle6.semantics.pysource.code_deparse
|
|
||||||
|
__all__ = [
|
||||||
|
"__version__",
|
||||||
|
"code_deparse",
|
||||||
|
"decompile_file",
|
||||||
|
"deparse_code2str",
|
||||||
|
"fragments",
|
||||||
|
"pysource",
|
||||||
|
]
|
||||||
|
Reference in New Issue
Block a user