Binary mode for file deserialization in python (#6936)

* use wb mode in file deserialization

* add auto generated files from security/python-petstore.sh
This commit is contained in:
Gabriele Bonetti
2017-11-13 05:50:10 +01:00
committed by William Cheng
parent 90a0b7a7e2
commit 62444a7aaf
14 changed files with 411 additions and 282 deletions

View File

@@ -525,7 +525,7 @@ class ApiClient(object):
content_disposition).group(1)
path = os.path.join(os.path.dirname(path), filename)
with open(path, "w") as f:
with open(path, "wb") as f:
f.write(response.data)
return path