# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. from __future__ import unicode_literals from util import DecompilerBase, First, WordConcatenator, reconstruct_paraminfo, \ reconstruct_arginfo, string_escape, split_logical_lines, Dispatcher from util import say_get_code from operator import itemgetter from StringIO import StringIO import magic magic.fake_package(b"renpy") import renpy magic.fake_package(b"store") import store import screendecompiler import sl2decompiler import testcasedecompiler import codegen import astdump __all__ = ["astdump", "codegen", "magic", "screendecompiler", "sl2decompiler", "testcasedecompiler", "translate", "util", "pprint", "Decompiler"] # Main API def pprint(out_file, ast, indent_level=0,
from util import ( DecompilerBase, First, WordConcatenator, reconstruct_paraminfo, reconstruct_arginfo, string_escape, split_logical_lines, Dispatcher, ) from operator import itemgetter import magic magic.fake_package(b"renpy") import renpy import screendecompiler import sl2decompiler import codegen import astdump __all__ = ["astdump", "codegen", "magic", "screendecompiler", "sl2decompiler", "util", "pprint", "Decompiler"] # Main API def pprint(out_file, ast, indent_level=0, decompile_python=False, line_numbers=False, printlock=None): Decompiler(out_file, printlock=printlock, decompile_python=decompile_python, match_line_numbers=line_numbers).dump( ast, indent_level