mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 08:29:59 +03:00
Fixed PEP8 error E711 comparison to None should be 'if cond is None that required manual review.
This commit is contained in:
parent
862cafa81a
commit
f5b5e318a6
|
@ -444,13 +444,13 @@ class CacheRenderTest(TestCase):
|
|||
""" Return any errors that would be raised if `obj' is pickled
|
||||
Courtesy of koffie @ http://stackoverflow.com/a/7218986/109897
|
||||
"""
|
||||
if seen == None:
|
||||
if seen is None:
|
||||
seen = []
|
||||
try:
|
||||
state = obj.__getstate__()
|
||||
except AttributeError:
|
||||
return
|
||||
if state == None:
|
||||
if state is None:
|
||||
return
|
||||
if isinstance(state, tuple):
|
||||
if not isinstance(state[0], dict):
|
||||
|
|
Loading…
Reference in New Issue
Block a user