Use "foo is None" instead of "foo == None".
[mirror/userdir-ldap.git] / ud-emailmatcher
index 4d42d77..aa717d5 100755 (executable)
@@ -84,7 +84,7 @@ while(1):
       if FingerPrint != None and UID != None:
          for x in Emails:
             Match = AddressSplit.match(x);
-            if Match == None:
+            if Match is None:
               continue;
             Groups = Match.groups();
            Email = Groups[1]+'@'+Groups[2];