Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d178ba6 commit bc1b5c8Copy full SHA for bc1b5c8
1 file changed
Lib/xml/sax/saxutils.py
@@ -104,6 +104,10 @@ class XMLFilterBase(xmlreader.XMLReader):
104
the event stream or the configuration requests as they pass
105
through."""
106
107
+ def __init__(self, parent = None):
108
+ xmlreader.XMLReader.__init__(self)
109
+ self._parent = parent
110
+
111
# ErrorHandler methods
112
113
def error(self, exception):
@@ -193,6 +197,14 @@ def getProperty(self, name):
193
197
def setProperty(self, name, value):
194
198
self._parent.setProperty(name, value)
195
199
200
+ # XMLFilter methods
201
202
+ def getParent(self):
203
+ return self._parent
204
205
+ def setParent(self, parent):
206
207
196
208
# --- Utility functions
209
210
def prepare_input_source(source, base = ""):
0 commit comments