MCPcopy Create free account
hub / github.com/PageBot/PageBot / asBabelString

Method asBabelString

Lib/pagebot/contexts/htmlcontext/htmlcontext.py:118–122  ·  view source on GitHub ↗

FIXME: Needs to be better implemented using tags and styles.

(self, bs)

Source from the content-addressed store, hash-verified

116 return bs.s
117
118 def asBabelString(self, bs):
119 """FIXME: Needs to be better implemented using tags and styles."""
120 if isinstance(bs, BabelString):
121 return bs
122 return self.newString(str(bs))
123
124 def text(self, sOrBs, p):
125 pass

Callers

nothing calls this directly

Calls 1

newStringMethod · 0.80

Tested by

no test coverage detected