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

Method format

recipes/Python/578835_String_templates_adaptive/recipe-578835.py:47–48  ·  view source on GitHub ↗
(self,*args,**kwargs)

Source from the content-addressed store, hash-verified

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 12

from_paramMethod · 0.45
obtain_privilegesFunction · 0.45
convertFunction · 0.45
index_text_fileFunction · 0.45
usageFunction · 0.45
mainFunction · 0.45
make_key_pairFunction · 0.45
__str__Method · 0.45
log_Method · 0.45
parseMethod · 0.45
testFunction · 0.45
lru_timestampFunction · 0.45

Calls 2

CClass · 0.70
IndentFormatterClass · 0.70

Tested by

no test coverage detected