MCPcopy Create free account
hub / github.com/PageBot/PageBot / __repr__

Method __repr__

Lib/pagebot/toolbox/units.py:2075–2079  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2073 return base * self.v / 100
2074
2075 def __repr__(self):
2076 v = asIntOrFloat(self.v)
2077 if isinstance(v, int):
2078 return u'%d%%' % v
2079 return u'%s%%' % asFormatted(v)
2080
2081 def _get_pt(self):
2082 """Answers the rendered value in pt. Base value for absolute unit

Callers

nothing calls this directly

Calls 2

asIntOrFloatFunction · 0.90
asFormattedFunction · 0.90

Tested by

no test coverage detected