MCPcopy Index your code
hub / github.com/nodejs/node / markup_join

Function markup_join

tools/inspector_protocol/jinja2/runtime.py:43–51  ·  view source on GitHub ↗

Concatenation that escapes if necessary and converts to unicode.

(seq)

Source from the content-addressed store, hash-verified

41
42
43def markup_join(seq):
44 """Concatenation that escapes if necessary and converts to unicode."""
45 buf = []
46 iterator = imap(soft_unicode, seq)
47 for arg in iterator:
48 buf.append(arg)
49 if hasattr(arg, '__html__'):
50 return Markup(u'').join(chain(buf, iterator))
51 return concat(buf)
52
53
54def unicode_join(seq):

Callers

nothing calls this directly

Calls 4

concatFunction · 0.85
MarkupClass · 0.50
appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected