-
-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix to_boto3 method The method had a bug where it was always creating its own boto3 resource. The intention was that it re-used the resource held by the class containing the method. However, we've since moved away from the resource API, because it is not multiprocessing-friendly. So, the contained class no longer holds a boto3 resource. We now require to_boto3 to receive the resource as a parameter. This achieves a trade-off between convenience and thread safety: - The user can use the more convenient Resource API - The smart_open library does not have to create unsafe objects by itself (the user does that) Fix #615 * update tests * Update CHANGELOG.md
- Loading branch information
Showing
5 changed files
with
18 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters