Update of /cvsroot/happydoc/HappyDoc3/happydoclib/parseinfo
In directory sc8-pr-cvs1:/tmp/cvs-serv29214/happydoclib/parseinfo
Modified Files:
moduleinfo.py
Log Message:
Use the status module and statusFunction to report exceptions when
interpreting options embedded in the comments of a module. This
ensures that the error messages go the same place as other messages.
It also lets our tests run more quietly.
Index: moduleinfo.py
===================================================================
RCS file: /cvsroot/happydoc/HappyDoc3/happydoclib/parseinfo/moduleinfo.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** moduleinfo.py 17 Nov 2002 16:20:41 -0000 1.2
--- moduleinfo.py 27 Dec 2002 15:52:36 -0000 1.3
***************
*** 66,69 ****
--- 66,70 ----
#
import happydoclib
+ from happydoclib.status import statusMessage
from happydoclib.parseinfo.classinfo import ClassInfo
from happydoclib.parseinfo.functioninfo import SuiteFuncInfo, FunctionInfo
***************
*** 177,183 ****
exec config_statement in global_namespace, local_namespace
except:
! sys.stderr.write('\n--- Parser Config Value Extraction Error ---\n')
! traceback.print_exc()
! sys.stderr.write('--------------------------------------------\n\n')
else:
self._configuration_values.update(local_namespace)
--- 178,190 ----
exec config_statement in global_namespace, local_namespace
except:
! statusMessage('--- Parser Config Value Extraction Error ---')
!
! #traceback.print_exc()
! etype, value, tb = sys.exc_info()
! lines = traceback.format_exception(etype, value, tb)
! for line in lines:
! statusMessage(line)
!
! statusMessage('--------------------------------------------')
else:
self._configuration_values.update(local_namespace)
|