diff options
author | Neil Schemenauer <nas-github@arctrix.com> | 2017-12-05 02:58:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-05 02:58:12 (GMT) |
commit | 8837dd092fe5ad5184889104e8036811ed839f98 (patch) | |
tree | 70b98ec438853e992d10338d7ff56da7d7a0b0d3 /Doc/distutils | |
parent | 9625bf520e08828e36bc3b1d043af679eb5f993d (diff) | |
download | cpython-8837dd092fe5ad5184889104e8036811ed839f98.zip cpython-8837dd092fe5ad5184889104e8036811ed839f98.tar.gz cpython-8837dd092fe5ad5184889104e8036811ed839f98.tar.bz2 |
bpo-19610: Warn if distutils is provided something other than a list to some fields (#4685)
* Rather than raise TypeError, warn and call list() on the value.
* Fix tests, revise NEWS and whatsnew text.
* Revise documentation, a string is okay as well.
* Ensure 'requires' and 'obsoletes' are real lists.
* Test that requires and obsoletes are turned to lists.
Diffstat (limited to 'Doc/distutils')
-rw-r--r-- | Doc/distutils/apiref.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/distutils/apiref.rst b/Doc/distutils/apiref.rst index ced8837..9fce46a 100644 --- a/Doc/distutils/apiref.rst +++ b/Doc/distutils/apiref.rst @@ -286,9 +286,9 @@ the full reference. Distribution constructor. :func:`setup` creates a Distribution instance. .. versionchanged:: 3.7 - :class:`~distutils.core.Distribution` now raises a :exc:`TypeError` if - ``classifiers``, ``keywords`` and ``platforms`` fields are not specified - as a list. + :class:`~distutils.core.Distribution` now warns if ``classifiers``, + ``keywords`` and ``platforms`` fields are not specified as a list or + a string. .. class:: Command |