1
0
mirror of http://git.whoc.org.uk/git/password-manager.git synced 2025-10-28 18:07:35 +01:00

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

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