__init__.py lint

This commit is contained in:
rocky 2022-03-09 12:16:38 -05:00
parent b270f6eed7
commit 3d24de7ce5

View File

@ -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) 1999 John Aycock
@ -36,8 +36,7 @@ if hasattr(sys, "setrecursionlimit"):
# pyston doesn't have setrecursionlimit
sys.setrecursionlimit(5000)
import uncompyle6.semantics.pysource
import uncompyle6.semantics.fragments
from uncompyle6.semantics import fragments, pysource
# Export some functions
from uncompyle6.main import decompile_file # noqa
@ -45,5 +44,13 @@ from uncompyle6.main import decompile_file # noqa
# Convenience functions so you can say:
# from uncompyle6 import (code_deparse, deparse_code2str)
deparse_code2str = uncompyle6.semantics.pysource.deparse_code2str
code_deparse = uncompyle6.semantics.pysource.code_deparse
from uncompyle6.semantics.pysource import code_deparse, deparse_code2str
__all__ = [
"__version__",
"code_deparse",
"decompile_file",
"deparse_code2str",
"fragments",
"pysource",
]