Home
last modified time | relevance | path

Searched refs:formatwarning (Results 1 – 8 of 8) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_warnings.py602 self.assertEqual(expect, self.module.formatwarning(message,
608 self.assertEqual(expect, self.module.formatwarning(message,
621 self.assertEqual(expect, self.module.formatwarning(message,
627 self.assertEqual(expect, self.module.formatwarning(message,
642 self.assertEqual(expect, self.module.formatwarning(message,
647 self.assertEqual(expect, self.module.formatwarning(message,
660 self.assertEqual(expect, self.module.formatwarning(message,
665 self.assertEqual(expect, self.module.formatwarning(message,
675 expect = self.module.formatwarning(message, category, file_name,
682 expect = self.module.formatwarning(message, category, file_name,
/external/python/cpython2/Lib/
Dwarnings.py33 file.write(formatwarning(message, category, filename, lineno, line))
40 def formatwarning(message, category, filename, lineno, line=None): function
/external/python/cpython2/Doc/library/
Dwarnings.rst43 message by calling :func:`formatwarning`, which is also available for use by
344 ``formatwarning(message, category, filename, lineno, line)`` and writes the
356 .. function:: formatwarning(message, category, filename, lineno[, line])
361 :func:`formatwarning` will try to read the line specified by *filename* and
Dlogging.rst1004 formatted using :func:`warnings.formatwarning` and the resulting string
/external/python/cpython2/Lib/logging/
D__init__.py1724 s = warnings.formatwarning(message, category, filename, lineno, line)
/external/autotest/client/common_lib/
Dutils.py98 logging.warning(warnings.formatwarning(message, category, filename, lineno,
/external/python/cpython2/Doc/whatsnew/
D2.6.rst2599 * The :mod:`warnings` module's :func:`formatwarning` and :func:`showwarning`
/external/python/cpython2/Misc/
DNEWS10058 and ``formatwarning()`` gain an optional 'line' argument which is