web/propertysheet.py
changeset 10614 57dfde80df11
parent 10505 a9becf2cce8b
child 10615 6c497fe389d2
--- a/web/propertysheet.py	Thu Sep 17 09:52:06 2015 +0200
+++ b/web/propertysheet.py	Tue Sep 15 15:33:47 2015 +0200
@@ -96,7 +96,7 @@
             if not osp.exists(rcachedir):
                 os.makedirs(rcachedir)
             sourcefile = osp.join(rdirectory, rid)
-            content = file(sourcefile).read()
+            content = open(sourcefile).read()
             # XXX replace % not followed by a paren by %% to avoid having to do
             # this in the source css file ?
             try:
@@ -105,7 +105,7 @@
                 self.error("can't process %s/%s: %s", rdirectory, rid, ex)
                 adirectory = rdirectory
             else:
-                stream = file(cachefile, 'w')
+                stream = open(cachefile, 'w')
                 stream.write(content)
                 stream.close()
                 adirectory = self._cache_directory