2011/2/25 Merlijn van Deen <valhallasw(a)arctus.nl>
Of course, the
>> 'a' if append else 'w'
is nicer, but has only been supported for python 2.5+.
Yet another variant: *pywikibot.iif(append,'a','w')*
I have just found this function in wikipedia.py. :-)