diff options
author | Guido van Rossum <guido@python.org> | 2001-03-02 06:42:34 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-03-02 06:42:34 +0000 |
commit | dbb2f4c37b37dadf13e6d020221a6467d2eb2be5 (patch) | |
tree | 2e1e241850c903a333c2de37ba642bcd244a905a /Lib/smtpd.py | |
parent | b8368eebdef175007a46e8f7b039e67c351ac170 (diff) | |
download | cpython-dbb2f4c37b37dadf13e6d020221a6467d2eb2be5.tar.gz |
Use != instead of <>. Sorry, Barry.
Diffstat (limited to 'Lib/smtpd.py')
-rwxr-xr-x | Lib/smtpd.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/smtpd.py b/Lib/smtpd.py index c04c4990cf..b5db3b0e09 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 <person@dom.com> 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) |