diff options
author | Jack Diederich <jackdied@gmail.com> | 2010-02-23 19:34:06 (GMT) |
---|---|---|
committer | Jack Diederich <jackdied@gmail.com> | 2010-02-23 19:34:06 (GMT) |
commit | 429a74a11a0b31c6a7093a89f595f834daaa1b79 (patch) | |
tree | 01dd70e054e2bd082e9739d086dd64130f23cd34 /Lib/xml/sax/xmlreader.py | |
parent | 1605b3316f2b739b7eeef53b4507b5e4215f1f8a (diff) | |
download | cpython-429a74a11a0b31c6a7093a89f595f834daaa1b79.zip cpython-429a74a11a0b31c6a7093a89f595f834daaa1b79.tar.gz cpython-429a74a11a0b31c6a7093a89f595f834daaa1b79.tar.bz2 |
issue#6442 use in operator instead of has_key
Diffstat (limited to 'Lib/xml/sax/xmlreader.py')
-rw-r--r-- | Lib/xml/sax/xmlreader.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xml/sax/xmlreader.py b/Lib/xml/sax/xmlreader.py index 8e23084..46ee02b 100644 --- a/Lib/xml/sax/xmlreader.py +++ b/Lib/xml/sax/xmlreader.py @@ -322,7 +322,7 @@ class AttributesImpl: return name in self._attrs def __contains__(self, name): - return self._attrs.has_key(name) + return name in self._attrs def get(self, name, alternative=None): return self._attrs.get(name, alternative) |