Skip to content

Commit

Permalink
Open config with utf-8 (#17309)
Browse files Browse the repository at this point in the history
  • Loading branch information
00Kai0 authored Mar 12, 2021
1 parent 2356d89 commit a03784c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def autorest_swagger_to_sdk_conf(readme, output_folder, config):
)
execute_simple_command(cmd_line.split())
conf_path = Path(output_folder, "configuration.json")
with conf_path.open() as fd:
with conf_path.open(encoding="utf-8") as fd:
conf_as_json = json.load(fd)
swagger_to_sdk_conf = [c for c in conf_as_json.get("swagger-to-sdk", []) if c]
return swagger_to_sdk_conf
Expand Down

0 comments on commit a03784c

Please sign in to comment.