Skip to content

Commit 9f2b6d0

Browse files
committed
Merge pull request MongoEngine#894 from MongoEngine/topic/not-in-style-issue
Code Cleanup - Use not in instead of not (x in y)
2 parents a443144 + 7d7d0ea commit 9f2b6d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mongoengine/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ def to_mongo(self, document, use_db_field=True):
609609
return None
610610

611611
data = document.to_mongo(use_db_field)
612-
if not '_cls' in data:
612+
if '_cls' not in data:
613613
data['_cls'] = document._class_name
614614
return data
615615

0 commit comments

Comments
 (0)