Home
last modified time | relevance | path

Searched refs:showwarning (Results 1 – 19 of 19) sorted by relevance

/third_party/python/Lib/idlelib/idle_test/
Dtest_warning.py15 showwarning = warnings.showwarning variable
18 running_in_idle = 'idle' in showwarning.__name__
35 self.assertIs(warnings.showwarning, showwarning)
37 self.assertIs(warnings.showwarning, run.idle_showwarning_subproc)
39 self.assertIs(warnings.showwarning, showwarning)
53 self.assertIs(warnings.showwarning, showwarning)
55 self.assertIs(warnings.showwarning, shell.idle_showwarning)
57 self.assertIs(warnings.showwarning, showwarning)
Dmock_tk.py91 showwarning = Mbox_func() # None variable in Mbox
/third_party/python/Lib/test/test_warnings/
D__init__.py714 del self.module.showwarning
739 self.module.showwarning = print
742 self.module.showwarning = 23
750 del self.module.showwarning
897 self.module.showwarning(message, category, file_name, line_num,
905 self.module.showwarning(message, category, file_name, line_num,
924 self.module.showwarning(message, category, file_name, line_num,
988 orig_showwarning = wmod.showwarning
991 wmod.filters = wmod.showwarning = object()
993 self.assertIs(wmod.showwarning, orig_showwarning)
[all …]
/third_party/python/Lib/
Dwarnings.py10 def showwarning(message, category, filename, lineno, file=None, line=None): function
94 _showwarning_orig = showwarning
99 sw = showwarning
465 self._showwarning = self._module.showwarning
472 self._module.showwarning = self._module._showwarning_orig
482 self._module.showwarning = self._showwarning
/third_party/python/Lib/tkinter/
Dmessagebox.py91 def showwarning(title=None, message=None, **options): function
140 print("warning", showwarning("Spam", "Egg Warning"))
Dsimpledialog.py307 messagebox.showwarning(
315 messagebox.showwarning(
324 messagebox.showwarning(
/third_party/python/Doc/library/
Dwarnings.rst38 The printing of warning messages is done by calling :func:`showwarning`, which
348 results. The :func:`showwarning` function in the module is also restored to
443 .. function:: showwarning(message, category, filename, lineno, file=None, line=None)
448 this function with any callable by assigning to ``warnings.showwarning``.
450 message; if *line* is not supplied, :func:`showwarning` will
497 and the :func:`showwarning` function.
501 :func:`showwarning` function (which also suppresses output to ``sys.stdout``).
503 :func:`showwarning`.
514 :func:`showwarning` function and internal list of filter
Dtkinter.messagebox.rst30 .. method:: showwarning(title=None, message=None, **options)
/third_party/python/Lib/idlelib/
Drun.py86 _warnings_showwarning = warnings.showwarning
87 warnings.showwarning = idle_showwarning_subproc
90 warnings.showwarning = _warnings_showwarning
Dpyshell.py107 _warnings_showwarning = warnings.showwarning
108 warnings.showwarning = idle_showwarning
111 warnings.showwarning = _warnings_showwarning
Diomenu.py162 messagebox.showwarning("Mixed Newlines",
Deditor.py966 messagebox.showwarning(title='IDLE Warning',
/third_party/python/Lib/test/libregrtest/
Dsave_env.py286 return warnings.showwarning
289 warnings.showwarning = fxn
/third_party/python/Misc/NEWS.d/
D3.6.0rc1.rst51 warnings.showwarning() if it was overridden inside the context manager.
D3.7.0a1.rst3843 warnings.showwarning() if it was overridden inside the context manager.
/third_party/python/Lib/logging/
D__init__.py2256 _warnings_showwarning = warnings.showwarning
2257 warnings.showwarning = _showwarning
2260 warnings.showwarning = _warnings_showwarning
/third_party/python/Lib/test/
Dtest_logging.py2177 warnings.showwarning("Explicit", UserWarning, "dummy.py", 42,
2193 warnings.showwarning("Explicit", UserWarning, "dummy.py", 42)
/third_party/python/Doc/whatsnew/
D2.6.rst2603 * The :mod:`warnings` module's :func:`formatwarning` and :func:`showwarning`
/third_party/python/Misc/
DHISTORY8489 - Issue #10271: Allow warnings.showwarning() be any callable.