summaryrefslogtreecommitdiffstats
path: root/Lib/xml
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2000-09-24 21:17:39 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2000-09-24 21:17:39 (GMT)
commit2066fa023cb1c141f434c922c34e4b910c01d49b (patch)
treebec283fd8df43cbe8eeedb674befe42507dc937e /Lib/xml
parent424980fd4df1b706208b06d2afe6a0e7626c4c0f (diff)
downloadcpython-2066fa023cb1c141f434c922c34e4b910c01d49b.zip
cpython-2066fa023cb1c141f434c922c34e4b910c01d49b.tar.gz
cpython-2066fa023cb1c141f434c922c34e4b910c01d49b.tar.bz2
Find feature names in handler.
Diffstat (limited to 'Lib/xml')
-rw-r--r--Lib/xml/sax/expatreader.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/xml/sax/expatreader.py b/Lib/xml/sax/expatreader.py
index 30d273b..22de342 100644
--- a/Lib/xml/sax/expatreader.py
+++ b/Lib/xml/sax/expatreader.py
@@ -7,7 +7,7 @@ version = "0.20"
from xml.sax._exceptions import *
from xml.parsers import expat
-from xml.sax import xmlreader, saxutils
+from xml.sax import xmlreader, saxutils, handler
AttributesImpl = xmlreader.AttributesImpl
AttributesNSImpl = xmlreader.AttributesNSImpl
@@ -47,14 +47,14 @@ class ExpatParser(xmlreader.IncrementalParser, xmlreader.Locator):
self._parser.SetBase(source.getSystemId())
def getFeature(self, name):
- if name == feature_namespaces:
+ if name == handler.feature_namespaces:
return self._namespaces
raise SAXNotRecognizedException("Feature '%s' not recognized" % name)
def setFeature(self, name, state):
if self._parsing:
raise SAXNotSupportedException("Cannot set features while parsing")
- if name == feature_namespaces:
+ if name == handler.feature_namespaces:
self._namespaces = state
else:
raise SAXNotRecognizedException("Feature '%s' not recognized" %