MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / format

Method format

src/Translate/Translate.py:73–79  ·  view source on GitHub ↗
(self, s, kwargs, nested=False)

Source from the content-addressed store, hash-verified

71 logging.debug("Translate file not exists: %s" % self.lang_file)
72
73 def format(self, s, kwargs, nested=False):
74 kwargs["_"] = self
75 if nested:
76 back = self.formatter.vformat(s, [], kwargs) # PY3 TODO: Change to format_map
77 return self.formatter.vformat(back, [], kwargs)
78 else:
79 return self.formatter.vformat(s, [], kwargs)
80
81 def formatLocals(self, s, nested=False):
82 kwargs = inspect.currentframe().f_back.f_locals

Callers 15

formatLocalsMethod · 0.95
__call__Method · 0.95
actionSitePublishMethod · 0.80
cbProgressMethod · 0.80
cbSitePublishMethod · 0.80
routeMethod · 0.80
sendHeaderMethod · 0.80
public_digestFunction · 0.80
bytes_to_hex_stringFunction · 0.80
is_testnetFunction · 0.80

Calls

no outgoing calls

Tested by 6

rebuildDbMethod · 0.64
igd_profileFunction · 0.64
filterMethod · 0.64