本文整理汇总了Python中docutils.utils.Reporter类的典型用法代码示例。如果您正苦于以下问题:Python Reporter类的具体用法?Python Reporter怎么用?Python Reporter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Reporter类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, source, report_level=Reporter.WARNING_LEVEL,
halt_level=Reporter.SEVERE_LEVEL, debug=False,
error_handler='backslashreplace'):
# type: (unicode, int, int, bool, unicode) -> None
stream = WarningStream()
Reporter.__init__(self, source, report_level, halt_level,
stream, debug, error_handler=error_handler)
示例2: __init__
def __init__(self):
settings = frontend.OptionParser().get_default_values()
settings.report_level = 1
Reporter.__init__(
self,
source='sphinxcontrib.clearquest',
report_level=settings.report_level,
halt_level=settings.halt_level,
stream=settings.warning_stream,
debug=settings.debug,
encoding=settings.error_encoding,
error_handler=settings.error_encoding_error_handler
)
示例3: __init__
def __init__(self, src='sphinxcontrib.xyz'):
settings = frontend.OptionParser().get_default_values()
settings.report_level = 1
Reporter.__init__(self,
src,
settings.report_level,
settings.halt_level,
stream=settings.warning_stream,
debug=settings.debug,
encoding=settings.error_encoding,
error_handler=settings.error_encoding_error_handler
)
self.log = logging.getLogger(src)
示例4: __init__
def __init__(self, source, report_level, halt_level, stream=None,
debug=0, encoding='ascii', error_handler='replace'):
self.messages = []
Reporter.__init__(self, source, report_level, halt_level, stream,
debug, encoding, error_handler)
示例5: __init__
def __init__(self):
# type: () -> None
Reporter.__init__(self, '', 999, 4)
示例6: set_conditions
def set_conditions(self, category, report_level, halt_level, debug=False):
# type: (unicode, int, int, bool) -> None
Reporter.set_conditions(self, category, report_level, halt_level, debug=debug)