Change '== None' to 'is None'

This commit is contained in:
Jason Koelker
2011-04-18 15:40:16 -05:00
parent ee34faabb9
commit 1be84a4634
5 changed files with 12 additions and 11 deletions

View File

@@ -106,7 +106,7 @@ logging.addLevelName(AUDIT, 'AUDIT')
def _dictify_context(context):
if context == None:
if context is None:
return None
if not isinstance(context, dict) \
and getattr(context, 'to_dict', None):