server/serverconfig.py
changeset 10614 57dfde80df11
parent 10589 7c23b7de2b8d
child 10617 c36cda9074c5
--- a/server/serverconfig.py	Thu Sep 17 09:52:06 2015 +0200
+++ b/server/serverconfig.py	Tue Sep 15 15:33:47 2015 +0200
@@ -235,7 +235,7 @@
 
     def bootstrap_cubes(self):
         from logilab.common.textutils import splitstrip
-        for line in file(join(self.apphome, 'bootstrap_cubes')):
+        for line in open(join(self.apphome, 'bootstrap_cubes')):
             line = line.strip()
             if not line or line.startswith('#'):
                 continue
@@ -246,7 +246,7 @@
             self.init_cubes(())
 
     def write_bootstrap_cubes_file(self, cubes):
-        stream = file(join(self.apphome, 'bootstrap_cubes'), 'w')
+        stream = open(join(self.apphome, 'bootstrap_cubes'), 'w')
         stream.write('# this is a generated file only used for bootstraping\n')
         stream.write('# you should not have to edit this\n')
         stream.write('%s\n' % ','.join(cubes))