Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
46
class
C(str):
47
def
format(self,*args,**kwargs):
48
return
C(IndentFormatter().format(self,*args,**kwargs))
49
50
def
test():
51
arrayvars = [
'arr{n}'
.format(n=n)
for
n in range(3)]
Callers
2
format
Method · 0.70
test
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected