Nov-27-2018, 08:57 PM
Python 2 is almost dead (still supported during one year), you should be using python 3.5 or 3.6 or 3.7.
You need to convert the char you read to an int. In python 2, do
You need to convert the char you read to an int. In python 2, do
b = fl.read(1) b = ord(b)In python 3, use
b = fl.read(1) b = b[0]