summaryrefslogtreecommitdiffstats
path: root/Doc/distutils
diff options
context:
space:
mode:
authorNeil Schemenauer <nas-github@arctrix.com>2017-12-05 02:58:12 (GMT)
committerGitHub <noreply@github.com>2017-12-05 02:58:12 (GMT)
commit8837dd092fe5ad5184889104e8036811ed839f98 (patch)
tree70b98ec438853e992d10338d7ff56da7d7a0b0d3 /Doc/distutils
parent9625bf520e08828e36bc3b1d043af679eb5f993d (diff)
downloadcpython-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.rst6
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