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):
try:
return resolve[name]
except KeyError:
if not ignore.has_key(name):
if name not in ignore:
try:
portal_skins = aq_base(self.portal_skins)
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