diff options
author | Marc Abramowitz <marc@marc-abramowitz.com> | 2014-06-09 08:10:10 -0700 |
---|---|---|
committer | Marc Abramowitz <marc@marc-abramowitz.com> | 2014-06-09 08:10:10 -0700 |
commit | f19da8ab35566c688a03e961bda691a1a926e866 (patch) | |
tree | 4f6f0789d15f158b52f9291559c3b19bd72b2d7d | |
parent | 533114a7f4713dc961823efec879e4865bb4e56d (diff) | |
download | python-memcached-f19da8ab35566c688a03e961bda691a1a926e866.tar.gz |
pep8: E711 comparison to None should be 'if cond is None:'
-rw-r--r-- | memcache.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/memcache.py b/memcache.py index 8eff94d..f12698b 100644 --- a/memcache.py +++ b/memcache.py @@ -1421,7 +1421,7 @@ if __name__ == "__main__": print("FAIL") failures += 1 print("Checking results of delete ...", end=" ") - if mc.get("long") == None: + if mc.get("long") is None: print("OK") else: print("FAIL") @@ -1438,7 +1438,7 @@ if __name__ == "__main__": # print("FAIL") # failures += 1 # print "Checking results of timed delete ..." - # if mc.get("timed_delete") == None: + # if mc.get("timed_delete") is None: # print("OK") # else: # print("FAIL") @@ -1531,13 +1531,13 @@ if __name__ == "__main__": print("Testing using a value larger than the memcached value limit...") print('NOTE: "MemCached: while expecting[...]" is normal...') x = mc.set('keyhere', 'a'*SERVER_MAX_VALUE_LENGTH) - if mc.get('keyhere') == None: + if mc.get('keyhere') is None: print("OK", end=" ") else: print("FAIL", end=" ") failures += 1 x = mc.set('keyhere', 'a'*SERVER_MAX_VALUE_LENGTH + 'aaa') - if mc.get('keyhere') == None: + if mc.get('keyhere') is None: print("OK") else: print("FAIL") |