PEP8: fix E711: comparison to None should be 'if cond is not None:'
[samba.git] / source4 / scripting / devel / demodirsync.py
index 67e361b1eb0bbdc06fc4720272477a0b791156e2..248cfec71012a6e6e282e89aedcf948f9d47e6e7 100755 (executable)
@@ -96,7 +96,7 @@ cont = 0
 if (len(ctrls)):
     for ctl in ctrls:
         cookie = printdirsync(ctl)
-    if cookie != None:
+    if cookie is not None:
         cont = (ctl.split(':'))[1]
     print("Returned %d entries" % len(msgs))
 
@@ -112,7 +112,7 @@ while (cont == "1"):
     if (len(ctrls)):
         for ctl in ctrls:
             cookie = printdirsync(ctl)
-        if cookie != None:
+        if cookie is not None:
             cont = (ctl.split(':'))[1]
         print("Returned %d entries" % len(msgs))