MCPcopy Index your code
hub / github.com/python/cpython / start

Method start

Lib/xmlrpc/client.py:655–664  ·  view source on GitHub ↗
(self, tag, attrs)

Source from the content-addressed store, hash-verified

653 # FIXME: assert standalone == 1 ???
654
655 def start(self, tag, attrs):
656 # prepare to handle this element
657 if ':' in tag:
658 tag = tag.split(':')[-1]
659 if tag == "array" or tag == "struct":
660 self._marks.append(len(self._stack))
661 self._data = []
662 if self._value and tag not in self.dispatch:
663 raise ResponseError("unknown tag %r" % tag)
664 self._value = (tag == "value")
665
666 def data(self, text):
667 self._data.append(text)

Callers

nothing calls this directly

Calls 3

ResponseErrorClass · 0.85
splitMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected