devtools/test/unittest_dbfill.py
changeset 10614 57dfde80df11
parent 10609 e2d8e81bfe68
child 10773 5b051dd4a4f5
--- a/devtools/test/unittest_dbfill.py	Thu Sep 17 09:52:06 2015 +0200
+++ b/devtools/test/unittest_dbfill.py	Tue Sep 15 15:33:47 2015 +0200
@@ -52,7 +52,7 @@
             return None
 
     def _available_Person_firstname(self, etype, attrname):
-        return [f.strip() for f in file(osp.join(DATADIR, 'firstnames.txt'))]
+        return [f.strip() for f in open(osp.join(DATADIR, 'firstnames.txt'))]
 
     def setUp(self):
         config = ApptestConfiguration('data', apphome=DATADIR)