MCPcopy
hub / github.com/wechatpy/wechatpy / __repr__

Method __repr__

wechatpy/fields.py:63–71  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

61 raise NotImplementedError()
62
63 def __repr__(self):
64 _repr = '{klass}({name})'.format(
65 klass=self.__class__.__name__,
66 name=repr(self.name)
67 )
68 if six.PY2:
69 return to_binary(_repr)
70 else:
71 return to_text(_repr)
72
73 def add_to_class(self, klass, name):
74 self.klass = klass

Callers

nothing calls this directly

Calls 2

to_binaryFunction · 0.90
to_textFunction · 0.90

Tested by

no test coverage detected