Updated to python 3 compatible code

This commit is contained in:
Graham Eades
2020-03-02 18:01:27 +00:00
parent fcd6e4863a
commit 6f22b5eb6e
5 changed files with 31 additions and 27 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ class DeltaBuilder(FrontendBuilder):
content = content.replace('@request.path@', backendSettings['request.path'])
dst = self.absolutePathForTargetFile(targetFolder, '', resource['target'])
file = open(dst, 'w')
file = open(dst, 'wb')
file.write(content.encode('utf-8'))
file.close()