[TELE-569] open using binary mode to fix 'must be string not bytes' exception

This commit is contained in:
Daniel Muyshond 2020-07-02 13:50:53 +02:00
parent d1f2fb0ad8
commit 47bed75241
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class eo_sdist(sdist):
if os.path.exists('VERSION'):
os.remove('VERSION')
version = get_version()
version_file = open('VERSION', 'w')
version_file = open('VERSION', 'wb')
version_file.write(version)
version_file.close()
sdist.run(self)