MCPcopy Index your code
hub / github.com/clips/pattern / begin_tag

Method begin_tag

pattern/web/pdf/pdfdevice.py:156–163  ·  view source on GitHub ↗
(self, tag, props=None)

Source from the content-addressed store, hash-verified

154 return
155
156 def begin_tag(self, tag, props=None):
157 s = ''
158 if isinstance(props, dict):
159 s = ''.join( ' %s="%s"' % (enc(k), enc(str(v))) for (k,v)
160 in sorted(props.iteritems()) )
161 self.outfp.write('<%s%s>' % (enc(tag.name), s))
162 self._stack.append(tag)
163 return
164
165 def end_tag(self):
166 assert self._stack

Callers 1

do_tagMethod · 0.95

Calls 5

encFunction · 0.90
strFunction · 0.85
iteritemsMethod · 0.80
writeMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected