MCPcopy Index your code
hub / github.com/rocky/python-uncompyle6 / info

Function info

uncompyle6/parsers/parse37.py:1722–1740  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

1720
1721
1722def info(args):
1723 # Check grammar
1724 p = Python37Parser()
1725 if len(args) > 0:
1726 arg = args[0]
1727 if arg == "3.7":
1728 from uncompyle6.parser.parse37 import Python37Parser
1729
1730 p = Python37Parser()
1731 elif arg == "3.8":
1732 from uncompyle6.parser.parse38 import Python38Parser
1733
1734 p = Python38Parser()
1735 else:
1736 raise RuntimeError("Only 3.7 and 3.8 supported")
1737 p.check_grammar()
1738 if len(sys.argv) > 1 and sys.argv[1] == "dump":
1739 print("-" * 50)
1740 p.dump_grammar()
1741
1742
1743class Python37ParserSingle(Python37Parser, PythonParserSingle):

Callers

nothing calls this directly

Calls 2

Python37ParserClass · 0.90
Python38ParserClass · 0.90

Tested by

no test coverage detected