summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorClaudio Bley <cbley@av-test.de>2013-08-22 11:16:03 +0200
committerClaudio Bley <cbley@av-test.de>2013-08-23 08:12:26 +0200
commitd101d3bce8c59583c5713215b6a7fb2f7376a1fc (patch)
treecbeaa7759899a4295ba7d628920261ff3b76987e /tests
parent2d533bde3bad357a070b2703fed7292eb2e2fb55 (diff)
Test for object identity when checking for None in Python
Consistently use "is" or "is not" to compare variables to None, because doing so is preferrable, as per PEP 8 (http://www.python.org/dev/peps/pep-0008/#programming-recommendations): > Comparisons to singletons like None should always be done with is or > is not, never the equality operators.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions