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

Class ProcessingInstruction

Lib/xml/dom/minidom.py:1003–1026  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1001
1002
1003class ProcessingInstruction(Childless, Node):
1004 nodeType = Node.PROCESSING_INSTRUCTION_NODE
1005 __slots__ = ('target', 'data')
1006
1007 def __init__(self, target, data):
1008 self.target = target
1009 self.data = data
1010
1011 # nodeValue is an alias for data
1012 def _get_nodeValue(self):
1013 return self.data
1014 def _set_nodeValue(self, value):
1015 self.data = value
1016 nodeValue = property(_get_nodeValue, _set_nodeValue)
1017
1018 # nodeName is an alias for target
1019 def _get_nodeName(self):
1020 return self.target
1021 def _set_nodeName(self, value):
1022 self.target = value
1023 nodeName = property(_get_nodeName, _set_nodeName)
1024
1025 def writexml(self, writer, indent="", addindent="", newl=""):
1026 writer.write("%s<?%s %s?>%s" % (indent,self.target, self.data, newl))
1027
1028
1029class CharacterData(Childless, Node):

Callers 1

Calls 1

propertyClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…