(args)
| 1720 | |
| 1721 | |
| 1722 | def 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 | |
| 1743 | class Python37ParserSingle(Python37Parser, PythonParserSingle): |
nothing calls this directly
no test coverage detected