cpython/Doc/tools
Victor Stinner 747f48e2e9
bpo-32230: Set sys.warnoptions with -X dev (#4820)
Rather than supporting dev mode directly in the warnings module, this
instead adjusts the initialisation code to add an extra 'default'
entry to sys.warnoptions when dev mode is enabled.

This ensures that dev mode behaves *exactly* as if `-Wdefault` had
been passed on the command line, including in the way it interacts
with `sys.warnoptions`, and with other command line flags like `-bb`.

Fix also bpo-20361: have -b & -bb options take precedence over any
other warnings options.

Patch written by Nick Coghlan, with minor modifications of Victor Stinner.
2017-12-12 22:59:48 +01:00
..
extensions bpo-30406: Make async and await proper keywords (#1669) 2017-10-05 23:24:46 -04:00
pydoctheme Issue #19489: Move the search box from sidebar to header and footer. 2016-09-09 13:11:27 -07:00
static bpo-31766: restore 3.5 to docs version switchers (#3969) 2017-10-12 14:08:43 -04:00
templates Replace KB unit with KiB (#4293) 2017-11-08 14:44:44 -08:00
rstlint.py Remove legacy "from __future__ import with_statement" lines. 2016-09-08 13:47:41 -07:00
susp-ignored.csv bpo-32230: Set sys.warnoptions with -X dev (#4820) 2017-12-12 22:59:48 +01:00