Skip to content

Commit

Permalink
Update files.md
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
lukaszsocha2 authored Jan 25, 2023
1 parent de13af2 commit 625298c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/usage/files.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ To download the file contents to an output stream, call
file_id = '11111'

# Write the Box file contents to disk
with output_file = open('file.pdf', 'wb'):
client.file(file_id).download_to(output_file)
with open('file.pdf', 'wb') as output_file:
client.file(file_id).download_to(output_file)
```

[file_version_class]: https://box-python-sdk.readthedocs.io/en/latest/boxsdk.object.html#boxsdk.object.file_version.FileVersion
Expand Down

0 comments on commit 625298c

Please sign in to comment.