MCPcopy
hub / github.com/rocky/python-uncompyle6 / info

Function info

uncompyle6/parsers/parse3.py:1788–1810  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

1786
1787
1788def info(args):
1789 # Check grammar
1790 p = Python3Parser()
1791 if len(args) > 0:
1792 arg = args[0]
1793 if arg == "3.5":
1794 from uncompyle6.parser.parse35 import Python35Parser
1795
1796 p = Python35Parser()
1797 elif arg == "3.3":
1798 from uncompyle6.parser.parse33 import Python33Parser
1799
1800 p = Python33Parser()
1801 elif arg == "3.2":
1802 from uncompyle6.parser.parse32 import Python32Parser
1803
1804 p = Python32Parser()
1805 elif arg == "3.0":
1806 p = Python30Parser()
1807 p.check_grammar()
1808 if len(sys.argv) > 1 and sys.argv[1] == "dump":
1809 print("-" * 50)
1810 p.dump_grammar()
1811
1812
1813if __name__ == "__main__":

Callers 1

parse3.pyFile · 0.70

Calls 5

Python35ParserClass · 0.90
Python33ParserClass · 0.90
Python32ParserClass · 0.90
Python3ParserClass · 0.85
Python30ParserClass · 0.70

Tested by

no test coverage detected