--- 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