diff options
Diffstat (limited to 'Lib/xml/sax/xmlreader.py')
-rw-r--r-- | Lib/xml/sax/xmlreader.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/xml/sax/xmlreader.py b/Lib/xml/sax/xmlreader.py index f1c9d9d..9a2361e 100644 --- a/Lib/xml/sax/xmlreader.py +++ b/Lib/xml/sax/xmlreader.py @@ -321,6 +321,9 @@ class AttributesImpl: def has_key(self, name): return self._attrs.has_key(name) + def __contains__(self, name): + return self._attrs.has_key(name) + def get(self, name, alternative=None): return self._attrs.get(name, alternative) |