Commit 89df7047 authored by Vincent Pelletier's avatar Vincent Pelletier

"not in" is faster than "has_key".


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21169 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 856a5dfc
...@@ -69,7 +69,7 @@ def CMFCoreSkinnableSkinnableObjectManager___getattr__(self, name): ...@@ -69,7 +69,7 @@ def CMFCoreSkinnableSkinnableObjectManager___getattr__(self, name):
try: try:
return resolve[name] return resolve[name]
except KeyError: except KeyError:
if not ignore.has_key(name): if name not in ignore:
try: try:
portal_skins = aq_base(self.portal_skins) portal_skins = aq_base(self.portal_skins)
except AttributeError: except AttributeError:
......
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