diff options
| author | Marc Mueller <30130371+cdce8p@users.noreply.github.com> | 2021-03-28 17:34:01 +0200 |
|---|---|---|
| committer | Marc Mueller <30130371+cdce8p@users.noreply.github.com> | 2021-04-03 21:13:18 +0200 |
| commit | 0f34639e5aa630b8cbe32af9cfe8dfec7be890e7 (patch) | |
| tree | 36caec2de420cfcd2c897da4b18e9c1c67041b06 /setuptools/command | |
| parent | 1da769c049093b6492b63422272f56b6e95df39d (diff) | |
| download | python-setuptools-git-0f34639e5aa630b8cbe32af9cfe8dfec7be890e7.tar.gz | |
Change deprecation warning
Diffstat (limited to 'setuptools/command')
| -rw-r--r-- | setuptools/command/sdist.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/setuptools/command/sdist.py b/setuptools/command/sdist.py index cd308ab9..278b8ce0 100644 --- a/setuptools/command/sdist.py +++ b/setuptools/command/sdist.py @@ -4,7 +4,6 @@ import os import sys import io import contextlib -import warnings from glob import iglob from setuptools.extern import ordered_set @@ -208,9 +207,9 @@ class sdist(sdist_add_defaults, orig.sdist): else ordered_set.OrderedSet(license_files) if 'license_file' in opts: - warnings.warn( - "The 'license_file' option is deprecated. Use 'license_files' instead.", - DeprecationWarning) + log.warn( + "warning: the 'license_file' option is deprecated, " + "use 'license_files' instead") patterns.append(opts['license_file'][1]) if 'license_file' not in opts and 'license_files' not in opts: |
