ext/tal.py
changeset 10614 57dfde80df11
parent 10590 7629902e7554
--- a/ext/tal.py	Thu Sep 17 09:52:06 2015 +0200
+++ b/ext/tal.py	Tue Sep 15 15:33:47 2015 +0200
@@ -206,7 +206,7 @@
     :type filepath: str
     :param template: path of the file to compile
     """
-    fp = file(filepath)
+    fp = open(filepath)
     file_content = unicode(fp.read()) # template file should be pure ASCII
     fp.close()
     return compile_template(file_content)