Kaydet (Commit) 429a74a1 authored tarafından Jack Diederich's avatar Jack Diederich

issue#6442 use in operator instead of has_key

üst 1605b331
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment