Skip to content
Snippets Groups Projects
Commit 61f46f3c authored by Denis Arrivault's avatar Denis Arrivault
Browse files

Update utf8 reading pb

parent 8fdbcfd2
Branches
Tags
No related merge requests found
Pipeline #
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -50,7 +50,7 @@ def get_version():
def set_version(ltfat_dir, VERSION):
filename = os.path.join(ltfat_dir, '__init__.py')
buf = ""
for line in open(filename):
for line in open(filename, encoding="utf-8"):
if not line.startswith("__version__ ="):
buf += line
f = open(filename, "w", encoding="utf-8")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment