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

Method add_unique_doc_rules

uncompyle6/parser.py:149–156  ·  view source on GitHub ↗

Add rules (a docstring-like list of rules) to grammar. Note that the rules must not be those that set arg_count in the custom dictionary.

(self, rules_str, customize)

Source from the content-addressed store, hash-verified

147 return
148
149 def add_unique_doc_rules(self, rules_str, customize):
150 """Add rules (a docstring-like list of rules) to grammar.
151 Note that the rules must not be those that set arg_count in the
152 custom dictionary.
153 """
154 rules = [r.strip() for r in rules_str.split("\n")]
155 self.add_unique_rules(rules, customize)
156 return
157
158 def cleanup(self):
159 """

Callers 6

custom_classfunc_ruleMethod · 0.80

Calls 1

add_unique_rulesMethod · 0.95

Tested by

no test coverage detected