Commit graph

11 commits

Author SHA1 Message Date
Michał Janiszewski
9d333bc95a Compare to None using identity is operator
This is a trivial change that replaces `==` operator with `is` operator, following PEP 8 guideline:

> Comparisons to singletons like None should always be done with is or is not, never the equality operators.

https://legacy.python.org/dev/peps/pep-0008/#programming-recommendations
2018-10-31 12:21:01 +11:00
Elvish_Hunter
f6fbd6351a Added missing Python shebangs to several scripts 2017-10-02 21:30:00 +02:00
Elias Pschernig
3ab3db3166 [units.wesnoth.org] Converted the script to Python 3.
Basically ran all .py files through 2to3. I made a copy of wmlparser2.py
called wmlparser3.py for the Python3 version, so as to not inconvenience anyone
who may be using it in their old Python2 scripts.
2015-09-09 22:52:23 -04:00
Elias Pschernig
3bd7c7ee1f [wmlunits] Create animation statistics again.
Sort unit tree overviews differently.
2012-02-20 22:38:55 +00:00
Elias Pschernig
5a2a2fac95 [wmlunits] Fixed forest tile picture. Fixed inclusion of addon campaigns with only shared units. 2011-11-20 15:04:52 +00:00
Thibault Févry
2288ef0939 Removed a lot of trailing whitespaces. Shouldn't be anymore in python scripts. 2011-03-12 02:22:21 +00:00
Elias Pschernig
26a3dc2046 [wmlunits] Updated wmlunits to use the new --preprocess parser.
Now all add-ons which can be played with wesnoth can be parsed by
wmlunits (only those).
2010-05-28 15:39:48 +00:00
Elias Pschernig
492eae3476 [wmlunits] Updated animations.html for new animation types. 2010-05-19 20:48:36 +00:00
Alexander van Gessel
9f314cd978 Fix some executable properties. 2008-09-30 15:07:09 +01:00
Alexander van Gessel
0063d92356 Adjust a lot of svn properties. 2008-09-30 14:06:26 +01:00
Elias Pschernig
5df94c0232 wmlunits: output a page with animation statistics 2008-04-26 12:08:32 +00:00