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
More accurately, how am I supposed to handle a "file" that is really just a bunch of bytes?
Ideally, I would like to use a BinaryIO object, however, these don't have a name attribute, so I get this error:
File "/usr/local/lib/python3.5/site-packages/warcat/model/block.py", line 83, in load
binary_block.set_file(file_obj.name or file_obj, file_obj.tell(), length)
AttributeError: '_io.BytesIO' object has no attribute 'name'
I'm not sure how to get around this.
The text was updated successfully, but these errors were encountered:
More accurately, how am I supposed to handle a "file" that is really just a bunch of bytes?
Ideally, I would like to use a
BinaryIO
object, however, these don't have aname
attribute, so I get this error:I'm not sure how to get around this.
The text was updated successfully, but these errors were encountered: