(args)
| 1786 | |
| 1787 | |
| 1788 | def 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 | |
| 1813 | if __name__ == "__main__": |
no test coverage detected