unicode.py
11 KB
-
Fix to_bytes(None) on Python 3 · eb99aa8c
You cannot call bytes(obj) to get a simple representation of obj on Python 3! E.g. bytes(42) returns a byte string with 42 NUL characters instead of b'42'.
Marius Gedminas committed