From 4f3fc2efb26efb808c3da86a072531eca0f4b403 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Sun, 28 Mar 2021 17:34:01 +0200 Subject: [PATCH] Change deprecation warning --- setuptools/command/sdist.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setuptools/command/sdist.py b/setuptools/command/sdist.py index cd308ab9ddc..0334c1c852e 100644 --- a/setuptools/command/sdist.py +++ b/setuptools/command/sdist.py @@ -208,9 +208,9 @@ def check_license(self): 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: