GNOME Bugzilla – Bug 787276
Fix bogus or expressions
Last modified: 2017-09-05 09:10:40 UTC
I found this while looking on commits-list. It seems there was some confusion on Python syntax, but the code does not do what it's meant to (or maybe it does it by chance).
Created attachment 359127 [details] [review] Fix bogus or expressions The or expression would be evaluated first, and would evaluate to the left hand side (which is truthy). This is not what the code is meant to achieve. To do that, use "in" to check membership in the tuple.
Good catch Giovanni, you made me recall a string / integer always evaluates to true boolean speaking. I committed a slightly modified patch. [1] Thanks! [1] https://git.gnome.org/browse/sysadmin-bin/commit/?id=51f8401