forked from jschneier/django-storages
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed typo in
S3Boto3StorageFile.__init__()
that prevented files op…
…ened in "r" mode from being read. (jschneier#896) lambda has a higher precedence than if-else, so `self._force_mode` was set to a function that returned another lambda when `'b'` is not in `mode`. Also added regression test.
- Loading branch information
1 parent
8321ff5
commit 1c6004c
Showing
2 changed files
with
9 additions
and
1 deletion.
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