issue#6442 use in operator instead of has_key

This commit is contained in:
Jack Diederich 2010-02-23 19:34:06 +00:00
parent 1605b3316f
commit 429a74a11a
1 changed files with 1 additions and 1 deletions

View File

@ -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)