Skip to content

Commit f0ceeb9

Browse files
authored
Update sdk_generator.py (Azure#32263)
fix python sdk generation problem
1 parent 600986c commit f0ceeb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/azure-sdk-tools/packaging_tools/sdk_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def after_multiapi_combiner(sdk_code_path: str, package_name: str, folder_name:
6666
# do not package code of v20XX_XX_XX
6767
exclude = lambda x: x.replace("-", ".") + ".v20*"
6868
if toml_file.exists():
69-
with open(toml_file, "r") as file_in:
69+
with open(toml_file, "rb") as file_in:
7070
content = toml.load(file_in)
7171
if package_name != "azure-mgmt-resource":
7272
content["packaging"]["exclude_folders"] = exclude(package_name)

0 commit comments

Comments
 (0)