web/webconfig.py
changeset 10614 57dfde80df11
parent 10568 3914388b2d0f
child 10666 7f6b5f023884
--- a/web/webconfig.py	Thu Sep 17 09:52:06 2015 +0200
+++ b/web/webconfig.py	Tue Sep 15 15:33:47 2015 +0200
@@ -460,7 +460,7 @@
             staticdir = join(staticdir, rdir)
             if not isdir(staticdir) and 'w' in mode:
                 os.makedirs(staticdir)
-        return file(join(staticdir, filename), mode)
+        return open(join(staticdir, filename), mode)
 
     def static_file_add(self, rpath, data):
         stream = self.static_file_open(rpath)