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
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