From: Guido van Rossum Date: Fri, 2 Mar 2001 06:42:34 +0000 (+0000) Subject: Use != instead of <>. Sorry, Barry. X-Git-Tag: v2.1b1~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ba3d657efc124a79b24cc9d8160191384d341de;p=thirdparty%2FPython%2Fcpython.git Use != instead of <>. Sorry, Barry. --- diff --git a/Lib/smtpd.py b/Lib/smtpd.py index c04c4990cfca..b5db3b0e0914 100755 --- a/Lib/smtpd.py +++ b/Lib/smtpd.py @@ -153,7 +153,7 @@ class SMTPChannel(asynchat.async_chat): method(arg) return else: - if self.__state <> self.DATA: + if self.__state != self.DATA: self.push('451 Internal confusion') return # Remove extraneous carriage returns and de-transparency according @@ -206,7 +206,7 @@ class SMTPChannel(asynchat.async_chat): keylen = len(keyword) if arg[:keylen].upper() == keyword: address = arg[keylen:].strip() - if address[0] == '<' and address[-1] == '>' and address <> '<>': + if address[0] == '<' and address[-1] == '>' and address != '<>': # Addresses can be in the form but watch out # for null address, e.g. <> address = address[1:-1] @@ -518,7 +518,7 @@ if __name__ == '__main__': try: os.setuid(nobody) except OSError, e: - if e.errno <> errno.EPERM: raise + if e.errno != errno.EPERM: raise print >> sys.stderr, \ 'Cannot setuid "nobody"; try running with -n option.' sys.exit(1)