comparison test/test_xmlrpc.py @ 5385:e9fb7c539a52

Python 3 preparation: use exec(compile(open().read())) instead of execfile(). Tool-assisted patch.
author Joseph Myers <jsm@polyomino.org.uk>
date Tue, 24 Jul 2018 22:18:30 +0000
parents 64b05e24dbd8
children d26921b851c3
comparison
equal deleted inserted replaced
5384:c4774b9f483c 5385:e9fb7c539a52
50 50
51 self.db.post_init() 51 self.db.post_init()
52 52
53 thisdir = os.path.dirname(__file__) 53 thisdir = os.path.dirname(__file__)
54 vars = {} 54 vars = {}
55 execfile(os.path.join(thisdir, "tx_Source_detector.py"), vars) 55 exec(compile(open(os.path.join(thisdir,
56 "tx_Source_detector.py")).read(),
57 os.path.join(thisdir, "tx_Source_detector.py"), 'exec'),
58 vars)
56 vars['init'](self.db) 59 vars['init'](self.db)
57 60
58 self.server = RoundupInstance(self.db, self.instance.actions, None) 61 self.server = RoundupInstance(self.db, self.instance.actions, None)
59 62
60 def tearDown(self): 63 def tearDown(self):

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