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

Method __init__

pattern/text/tree.py:1306–1308  ·  view source on GitHub ↗
(self, string)

Source from the content-addressed store, hash-verified

1304
1305class XML(object):
1306 def __init__(self, string):
1307 from xml.etree import cElementTree
1308 self.root = cElementTree.fromstring(string)
1309 def __call__(self, tag):
1310 return [XMLNode(e) for e in self.root.findall(tag)]
1311

Callers

nothing calls this directly

Calls 1

fromstringMethod · 0.45

Tested by

no test coverage detected