[Docstring-checkins] CVS: dps/dps utils.py,1.8,1.9
Status: Pre-Alpha
Brought to you by:
goodger
From: David G. <go...@us...> - 2001-11-22 04:10:53
|
Update of /cvsroot/docstring/dps/dps In directory usw-pr-cvs1:/tmp/cvs-serv8488/dps/dps Modified Files: utils.py Log Message: - Improved error stream handling. Index: utils.py =================================================================== RCS file: /cvsroot/docstring/dps/dps/utils.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** utils.py 2001/11/15 02:57:22 1.8 --- utils.py 2001/11/22 04:10:50 1.9 *************** *** 22,26 **** class Reporter: ! def __init__(self, warninglevel, errorlevel, warningstream=sys.stderr): self.warninglevel = warninglevel """The level at or above which warning output will be sent to --- 22,26 ---- class Reporter: ! def __init__(self, warninglevel, errorlevel, warningstream=None): self.warninglevel = warninglevel """The level at or above which warning output will be sent to *************** *** 30,33 **** --- 30,36 ---- """The level at or above which `SystemWarning` exceptions will be raised.""" + + if warningstream is None: + warningstream = sys.stderr self.stream = warningstream |