Closed meaksh closed 2 years ago
@Conan-Kudo @m-blaha , any chance for either one of you to review/merge and release?
I think this is fine ... the writes are in binary mode, which implies this read should be too. I'd assume the example given would work better as is, maybe it does in py2?
As always with python there's always a worry that someone else's code now breaks after changing it.
This PR fixes an issue in version 4.1 when interacting directly with the
PyCurlFileObject
object:Apparently the re opening mechanism for the downloaded file is not using binary mode as it is expected.
You can easily reproduce this by running this example:
This PR fixes this issue and allow manual
PyCurlFileObject
interaction to work fine.