I think this is a bit of a behaviour difference between py2 and py3 - Python 2 will throw a ValueError when passed a binary encoded string, Python 3 throws a TypeError.
I think this is a bit of a behaviour difference between py2 and py3 - Python 2 will throw a ValueError when passed a binary encoded string, Python 3 throws a TypeError.