Fixed PEP8 error E711 comparison to None should be 'if cond is None that required manual review.

This commit is contained in:
Omer Katz 2013-01-25 20:07:17 +03:00
parent 862cafa81a
commit f5b5e318a6

View File

@ -444,13 +444,13 @@ class CacheRenderTest(TestCase):
""" Return any errors that would be raised if `obj' is pickled """ Return any errors that would be raised if `obj' is pickled
Courtesy of koffie @ http://stackoverflow.com/a/7218986/109897 Courtesy of koffie @ http://stackoverflow.com/a/7218986/109897
""" """
if seen == None: if seen is None:
seen = [] seen = []
try: try:
state = obj.__getstate__() state = obj.__getstate__()
except AttributeError: except AttributeError:
return return
if state == None: if state is None:
return return
if isinstance(state, tuple): if isinstance(state, tuple):
if not isinstance(state[0], dict): if not isinstance(state[0], dict):