Re: Use module logging instead of hand-made Tee in lib/configure.py.

2009-03-04 Thread José Matos
On Wednesday 04 March 2009 18:43:11 Bo Peng wrote: > Please apply. I do not have trunk here. Done. Thanks. > Thanks. > Bo -- José Abílio

Re: Use module logging instead of hand-made Tee in lib/configure.py.

2009-03-04 Thread Bo Peng
> I am not sure if that was the original reason. logging has appeared in python > 2.3 and initially for lyx 1.4 we planned for python 2.2. I am not sure if that > is the reason FWIW I am just adding this to be fair. This might be the reason, but I did not even look for something like this when I w

Re: Use module logging instead of hand-made Tee in lib/configure.py.

2009-03-04 Thread José Matos
On Wednesday 04 March 2009 16:52:30 Bo Peng wrote: > Dear all, > > A Tee class is defined in lib/configure.py. Writing to this object > writes to the standard console as well as a logfile. This is clever, > well, for a Python newbie who learned Python but not its standard > libraries. I am not sur

Use module logging instead of hand-made Tee in lib/configure.py.

2009-03-04 Thread Bo Peng
Dear all, A Tee class is defined in lib/configure.py. Writing to this object writes to the standard console as well as a logfile. This is clever, well, for a Python newbie who learned Python but not its standard libraries. The right way to do this is to use the Python logging module. In the attac