Closed nleroy917 closed 4 years ago
Perfect! Very very nice! I'll merge this and push it to PYPI when I have a moment. Thank you very much for the contribution! 😊
No problem! Thanks for reviewing considering it!
Hey - just checking in on the status of this PR
Oh no, I just realized that this is a breaking change. On Python 2, str
is bytes
, and paths are often supplied in that type – so this PR may break existing Python 2 code that uses colorgram.py
. I'm sorry – this can't be added to the API without breaking anything… I'd recommend using BytesIO
user-side when invoking colorgram.py
!
Makes sense - thanks for the consideration
Same motivation and concept as before, with following changes:
test_api.py
to test binary data with locally downloaded image rather than one downloaded during testing