You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The write function in S3Boto3StorageFile uses force_bytes which unexpectedly encodes objects of type bytearray causing the content be like "b'bytearray(..." instead of "...".
How to reproduce
Just from a S3 storage open a file with mode 'wb' and write `bytearray()' to it.
Python >= 3.1
boto3==1.15.13
The text was updated successfully, but these errors were encountered:
Description
The write function in
S3Boto3StorageFile
usesforce_bytes
which unexpectedly encodes objects of typebytearray
causing the content be like "b'bytearray(..." instead of "...".How to reproduce
Just from a S3 storage open a file with mode 'wb' and write `bytearray()' to it.
Python >= 3.1
boto3==1.15.13
The text was updated successfully, but these errors were encountered: