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

Class CmpErrorCodeLen

uncompyle6/verify.py:128–140  ·  view source on GitHub ↗

Exception to be raised when code length differs.

Source from the content-addressed store, hash-verified

126
127
128class CmpErrorCodeLen(VerifyCmpError):
129 """Exception to be raised when code length differs."""
130
131 def __init__(self, name, tokens1, tokens2):
132 self.name = name
133 self.tokens = [tokens1, tokens2]
134
135 def __str__(self):
136 return reduce(
137 lambda s, t: "%s%-37s\t%-37s\n" % (s, t[0], t[1]),
138 list(map(lambda a, b: (a, b), self.tokens[0], self.tokens[1])),
139 "Code len differs in %s\n" % str(self.name),
140 )
141
142
143class CmpErrorMember(VerifyCmpError):

Callers 1

cmp_code_objectsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected