[Zope-Checkins] CVS: Releases/Zope - z2.py:1.55
Shane Hathaway
shane@digicool.com
Mon, 30 Jul 2001 17:07:56 -0400
Update of /cvs-repository/Releases/Zope
In directory cvs.zope.org:/tmp/cvs-serv17630
Modified Files:
z2.py
Log Message:
Used _set_stupid_dest function instead of poking at zLOG when possible.
=== Releases/Zope/z2.py 1.54 => 1.55 ===
if READ_ONLY:
- zLOG._stupid_dest=sys.stderr
+ if hasattr(zLOG, '_set_stupid_dest'):
+ zLOG._set_stupid_dest(sys.stderr)
+ else:
+ zLOG._stupid_dest = sys.stderr
else:
zLOG.log_write = ZLogger.ZLogger.log_write