These are mostly minor syntax changes in order to be able to use python 3.8.2 with Ubuntu 20.04/Mint 20.
Opening the file with mode "a+" results in an empty todo list. Mode "r+" is absolutely required.
The additional comparison in item.py is required to make sure that .priority is really defined for both sides of the comparison. It would fail otherwise in case both items have no priority defined.
I am more a C guy, I don't know much about python. I didn't check if any of these changes break compatibility with older python versions like 2.7.
These are mostly minor syntax changes in order to be able to use python 3.8.2 with Ubuntu 20.04/Mint 20.
Opening the file with mode "a+" results in an empty todo list. Mode "r+" is absolutely required. The additional comparison in item.py is required to make sure that .priority is really defined for both sides of the comparison. It would fail otherwise in case both items have no priority defined.
I am more a C guy, I don't know much about python. I didn't check if any of these changes break compatibility with older python versions like 2.7.