Skip to content

Commit 0b9f22c

Browse files
author
Alexey Bogoslovskyi
committed
Fixed encoding issue in driver_generator
1 parent 5ff337e commit 0b9f22c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shellfoundry/utilities/driver_generator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def _generate_driver_data_model(
7373
url,
7474
files={
7575
path.basename(shell_filename): open(
76-
package_full_path, "rb", encoding="utf8"
76+
package_full_path, "rb"
7777
)
7878
},
7979
headers={"Authorization": "Basic " + token},
@@ -90,7 +90,7 @@ def _generate_driver_data_model(
9090
with TempDirContext(remove_dir_on_error=False, prefix=shell_name) as temp_dir:
9191
generated_zip = path.join(temp_dir, shell_filename)
9292
click.echo("Writing temporary file {0}".format(generated_zip))
93-
with open(generated_zip, "wb", encoding="utf8") as driver_file:
93+
with open(generated_zip, "wb") as driver_file:
9494
driver_file.write(response.content)
9595

9696
click.echo("Extracting generated code at {0}".format(destination_path))

0 commit comments

Comments
 (0)