MCPcopy Create free account
hub / github.com/ActiveState/code / C

Class C

recipes/Python/578835_String_templates_adaptive/recipe-578835.py:46–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 return ('\n'+' '*addindent).join(trimmed)
45
46class C(str):
47 def format(self,*args,**kwargs):
48 return C(IndentFormatter().format(self,*args,**kwargs))
49
50def test():
51 arrayvars = ['arr{n}'.format(n=n) for n in range(3)]

Callers 2

formatMethod · 0.70
testFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected