They can be found through autopep8 (W690) or python-modernize.
Variables manually renamed.
This is because Python 3 does not support tuple unpacking:
http://legacy.python.org/dev/peps/pep-3113/
autopep8 -a -r -i --select E711,E712,W601,W602,W603,W604,W690,E304,E401,E502 .
Also includes some manual reindentations (many are left after the print()
changes).
Manually checked, some modernizations not commited here.
I used autopep8 on some files and did carefully check the changes.
I ignored E501,E302,E231,E225,E222,E221,E241,E203 in my search, and at
least E501 on any autopep8 run.
Other style fixes not related to PEP8:
* Only use new-style classes. I don't think the usage of old-style
classes was voluntary. Old-style classes are removed in Python 3.
* Convert an if/else to a one-liner in mediawiki, change docstring style
change to a comment something that wasn't really appropriate for a
docstring.
* Unneeded first if condition in meteofrance
Rather than imposing onclick, the map attribute whose value is returned
when retrieving a code is now a constructor argument
For the sake of backward compatibility, default is set to onclick
Signed-off-by: Pierre Mazière <pierre.maziere@gmail.com>
This method allows one to verify, before any decoding attempt,
if all the symbols given as arguments can be found in the
virtual keyboard.
Signed-off-by: Pierre Mazière <pierre.maziere@gmail.com>