Mercurial > p > roundup > code
comparison test/test_mailgw.py @ 5381:0942fe89e82e
Python 3 preparation: change "x.has_key(y)" to "y in x".
(Also likewise "not in" where appropriate.) Tool-generated patch.
| author | Joseph Myers <jsm@polyomino.org.uk> |
|---|---|
| date | Tue, 24 Jul 2018 22:08:17 +0000 |
| parents | 35ea9b1efc14 |
| children | d26921b851c3 |
comparison
equal
deleted
inserted
replaced
| 5380:64c4e43fbb84 | 5381:0942fe89e82e |
|---|---|
| 28 reason="Skipping PGP tests: 'pyme' not installed")) | 28 reason="Skipping PGP tests: 'pyme' not installed")) |
| 29 | 29 |
| 30 | 30 |
| 31 from cStringIO import StringIO | 31 from cStringIO import StringIO |
| 32 | 32 |
| 33 if not os.environ.has_key('SENDMAILDEBUG'): | 33 if 'SENDMAILDEBUG' not in os.environ: |
| 34 os.environ['SENDMAILDEBUG'] = 'mail-test.log' | 34 os.environ['SENDMAILDEBUG'] = 'mail-test.log' |
| 35 SENDMAILDEBUG = os.environ['SENDMAILDEBUG'] | 35 SENDMAILDEBUG = os.environ['SENDMAILDEBUG'] |
| 36 | 36 |
| 37 from roundup import mailgw, i18n, roundupdb | 37 from roundup import mailgw, i18n, roundupdb |
| 38 from roundup.mailgw import MailGW, Unauthorized, uidFromAddress, \ | 38 from roundup.mailgw import MailGW, Unauthorized, uidFromAddress, \ |
