MCPcopy Create free account
hub / github.com/SimHacker/micropolis / StringToElement

Function StringToElement

turbogears/micropolis/controllers.py:321–325  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

319# Takes a string, and parses it into an XML element.
320#
321def StringToElement(s):
322 f = StringIO(s)
323 et = ElementTree.parse(f)
324 el = et.getroot()
325 return el
326
327
328########################################################################

Callers

nothing calls this directly

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected