keithfancher / todo-indicator

Ubuntu app indicator for todo.txt-style todo lists
GNU General Public License v3.0
48 stars 8 forks source link

Python3 #5

Closed tenbaht closed 1 year ago

tenbaht commented 3 years ago

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.

keithfancher commented 1 year ago

Thank you for taking the time to open this!

And many apologies for my extremely tardy merge... it's been a couple of years since I've looked at my github account :sweat_smile: