[Pywikipedia-l] Two minor problems in replace.py (attn xqt)

info at gno.de info at gno.de
Fri Feb 25 16:10:09 UTC 2011

> Another issue is with line 843,
>             titlefile = codecs.open(filename, encoding='utf-8',
>                                     mode=(lambda x: x and 'a' or
> 'w')(append))
> I tested my original version which had an IF here as far as I remember, and
> you turned it to lambda function. But somehow the -save option behaves now
> just as -savenew does, i.e. overwrites the old file instead of appending.
> Could you please help?

The behaviour was reversed. I fixed it in r9011


More information about the Pywikipedia-l mailing list