0001# Copyright (C) 2006 Kumar McMillan
0002#
0003# This library is free software; you can redistribute it and/or
0004# modify it under the terms of the GNU Lesser General Public
0005# License as published by the Free Software Foundation; either
0006# version 2.1 of the License, or (at your option) any later version.
0007
0008'''common configuration settings.
0009
0010'''
0011
0012class debug:
0013 stream = None
0014
0015def reset_debug():
0016 return set_debug_stream(None)
0017
0018def set_debug_stream(strm):
0019 old_stream = debug.stream
0020
0021 debug.stream = strm
0022 return old_stream