From: Brett Cannon Date: Fri, 5 Sep 2008 03:52:59 +0000 (+0000) Subject: Make it more obvious that warnings.catch_warnings() and its arguments should be consi... X-Git-Tag: v2.6rc1~53 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3dffcd1a72d61b2f9fafac77734db84a55605a84;p=thirdparty%2FPython%2Fcpython.git Make it more obvious that warnings.catch_warnings() and its arguments should be considered keyword-only. --- diff --git a/Doc/library/warnings.rst b/Doc/library/warnings.rst index aaf7897e75f0..68bc26102c56 100644 --- a/Doc/library/warnings.rst +++ b/Doc/library/warnings.rst @@ -267,7 +267,7 @@ Available Functions Available Classes ----------------- -.. class:: catch_warnings([record=False[, module=None]]) +.. class:: catch_warnings([\*, record=False[, module=None]]) A context manager that guards the warnings filter from being permanently mutated. The manager returns an instance of :class:`WarningsRecorder`. The