07-16-2020, 04:34 PM
Judging from the style and variable names, most of this was copied from an example from the web. And it just worked in Python 2 and nobody worried about it. Now with Python 3, we have a strong separation between bytes and strings and this has become a problem.