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

Method remove_rules_31

uncompyle6/parsers/parse31.py:36–46  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

34 """
35
36 def remove_rules_31(self):
37 self.remove_rules(
38 """
39 # DUP_TOP_TWO is DUP_TOPX in 3.1 and earlier
40 subscript2 ::= expr expr DUP_TOP_TWO BINARY_SUBSCR
41
42 # The were found using grammar coverage
43 list_if ::= expr jmp_false list_iter COME_FROM
44 list_if_not ::= expr jmp_true list_iter COME_FROM
45 """
46 )
47
48 def customize_grammar_rules(self, tokens, customize):
49 super(Python31Parser, self).customize_grammar_rules(tokens, customize)

Callers 2

parse31.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected