PEP8 x == True should be x is True

This commit is contained in:
Ross Lawley
2013-04-26 11:46:12 +00:00
parent 36993097b4
commit 5e65d27832
3 changed files with 3 additions and 3 deletions

View File

@@ -548,7 +548,7 @@ class Document(BaseDocument):
# If _cls is being used (for polymorphism), it needs an index,
# only if another index doesn't begin with _cls
if (index_cls and not cls_indexed and
cls._meta.get('allow_inheritance', ALLOW_INHERITANCE) == True):
cls._meta.get('allow_inheritance', ALLOW_INHERITANCE) is True):
collection.ensure_index('_cls', background=background,
**index_opts)