comparison test/test_cgi.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 64b05e24dbd8
children e9fb7c539a52
comparison
equal deleted inserted replaced
5380:64c4e43fbb84 5381:0942fe89e82e
806 # need to set SENDMAILDEBUG to prevent 806 # need to set SENDMAILDEBUG to prevent
807 # downstream issue when email is sent on successful 807 # downstream issue when email is sent on successful
808 # issue creation. Also delete the file afterwards 808 # issue creation. Also delete the file afterwards
809 # just tomake sure that someother test looking for 809 # just tomake sure that someother test looking for
810 # SENDMAILDEBUG won't trip over ours. 810 # SENDMAILDEBUG won't trip over ours.
811 if not os.environ.has_key('SENDMAILDEBUG'): 811 if 'SENDMAILDEBUG' not in os.environ:
812 os.environ['SENDMAILDEBUG'] = 'mail-test1.log' 812 os.environ['SENDMAILDEBUG'] = 'mail-test1.log'
813 SENDMAILDEBUG = os.environ['SENDMAILDEBUG'] 813 SENDMAILDEBUG = os.environ['SENDMAILDEBUG']
814 814
815 page_template = """ 815 page_template = """
816 <html> 816 <html>

Roundup Issue Tracker: http://roundup-tracker.org/