changeset 2506:5859ca25dbfc

PEP8 fixes
author sharky93 <rishabhr123@gmail.com>
date Sun, 22 Sep 2013 16:05:55 +0530
parents 49ea7807635a
children 677f7097c6fe
files MoinMoin/items/__init__.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/items/__init__.py	Sun Sep 22 15:23:14 2013 +0530
+++ b/MoinMoin/items/__init__.py	Sun Sep 22 16:05:55 2013 +0530
@@ -437,9 +437,9 @@
             # 'strict', which causes KeyError to be thrown when meta contains
             # meta keys that are not present in self['meta_form']. Setting
             # policy to 'duck' suppresses this behavior.
-            if not meta.has_key('acl'):
+            if 'acl' not in meta:
                 meta['acl'] = "None"
-        
+
             self['meta_form'].set(meta, policy='duck')
             for k in self['meta_form'].field_schema_mapping.keys():
                 meta.pop(k, None)
@@ -486,7 +486,7 @@
 
         meta = dict(meta)  # we may get a read-only dict-like, copy it
 
-        if meta.has_key('acl'):
+        if 'acl' in meta:
             # we treat this as nothing specified, so fallback to default
             if meta['acl'] == 'None':
                 meta.pop('acl')