Use "foo is None" instead of "foo == None".
[mirror/userdir-ldap.git] / unmaintained / gpgwrapper
index cf25226..793a524 100755 (executable)
@@ -148,7 +148,7 @@ try:
    if Res[0] != None:
       raise Error, Res[0];
       
-   if Res[3] == None:
+   if Res[3] is None:
       raise Error, "Null signature text";
 
    # Extract the plain message text in the event of mime encoding
@@ -179,9 +179,9 @@ try:
    ErrType = EX_PERMFAIL;
    ErrMsg = "A problem occured while trying to formulate the reply";
    Sender = Email.getheader("Reply-To");
-   if Sender == None:
+   if Sender is None:
       Sender = Email.getheader("From");
-   if Sender == None:
+   if Sender is None:
       raise Error, "Unable to determine the sender's address";
       
    # Setup the environment