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 /Misc/NEWS.d | |
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 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Library/2017-11-23-16-15-55.bpo-19610.Dlca2P.rst | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Misc/NEWS.d/next/Library/2017-11-23-16-15-55.bpo-19610.Dlca2P.rst b/Misc/NEWS.d/next/Library/2017-11-23-16-15-55.bpo-19610.Dlca2P.rst index 5ea87a4..514740b 100644 --- a/Misc/NEWS.d/next/Library/2017-11-23-16-15-55.bpo-19610.Dlca2P.rst +++ b/Misc/NEWS.d/next/Library/2017-11-23-16-15-55.bpo-19610.Dlca2P.rst @@ -1,5 +1,4 @@ -``setup()`` now raises :exc:`TypeError` for invalid types. +``setup()`` now warns about invalid types for some fields. -The ``distutils.dist.Distribution`` class now explicitly raises an exception -when ``classifiers``, ``keywords`` and ``platforms`` fields are not -specified as a list. +The ``distutils.dist.Distribution`` class now warns when ``classifiers``, +``keywords`` and ``platforms`` fields are not specified as a list or a string. |