| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Coverage decreased (-0.7%) to 84.317% when pulling 38c7b92 on moriyoshi:moriyoshi/fix-type-char-unpack into 8472ed9 on tcalmant:master. |
Sorry, something went wrong.
|
Thanks for your contribution! |
Sorry, something went wrong.
|
Thank you for looking into this! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This patch fixes the following issues:
For example using unpack spec '>hh" on "\xff\xff" results in (-1, -1) and causes ValueError in bytes().
Just fixing the above doesn't solve all the problems. Applying.decode('utf16-be') on a resulting buffer of such two bytes that represent surrogate pairs ends up in UnicodeDecodeError.
I don't really think that it is a good idea to manipulate strings for debugging regardless of its being enabled or not.
In py2 bytes is merely an alias of str, which doesn't construct a sequence of bytes from a iterator.
It's not been implemented at all.