…form with PEP8) More specifically: """ - Comparisons to singletons like None should always be done with 'is' or 'is not', never the equality operators. """ AFAIK this is recommended because if an object overrides __eq__, we could theoretically have a situation where that object would equal None
…o the status
I wanted to do this for a while now. As far as I know, the git commit option was not used. Anyway, it is probably easy to emulate by just telling the program to run the necessary commands (I can't say for sure if that's all it will take, because of the problem of having to ignore the .git directory') This change also made the code much cleaner and less criptic.
For now, it will only show a OK button, but the idea is to show the state.
The idea is to have an object that will store the state (things like the timestamp, for example). For now only the old function monitor was transformed in a method here (the method check). The next step is to add a timeout call to this method (via gobject).
For some reason, when a python module uses print on an object that is not a string, the message won't go to the notification. As a fallback, we print it to stdout, but ideally we should be able to show it in the notification
For some reason, when a python module uses print, the message won't go to the notification. As a fallback, we print it to stdout, but ideally we should be able to show it in the notification