aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-05-31 08:43:36 -0400
committerJason R. Coombs <jaraco@jaraco.com>2020-05-31 08:43:36 -0400
commit4ac101a1805a3773649b42c7682038f41314738e (patch)
treec988815cbc511e8b5810b9ca1d6e543f3ebecd51
parent020b6a46477e6ddf9dc9e9e2b70b4c8b66ac50c6 (diff)
downloadexternal_python_setuptools-4ac101a1805a3773649b42c7682038f41314738e.tar.gz
external_python_setuptools-4ac101a1805a3773649b42c7682038f41314738e.tar.bz2
external_python_setuptools-4ac101a1805a3773649b42c7682038f41314738e.zip
Restore Python 3.5 syntax compatibility in distutils.dist.
-rw-r--r--distutils/dist.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/distutils/dist.py b/distutils/dist.py
index 6cf0a0d6..37db4d6c 100644
--- a/distutils/dist.py
+++ b/distutils/dist.py
@@ -35,7 +35,8 @@ def _ensure_list(value, fieldname):
elif not isinstance(value, list):
# passing a tuple or an iterator perhaps, warn and convert
typename = type(value).__name__
- msg = f"Warning: '{fieldname}' should be a list, got type '{typename}'"
+ msg = "Warning: '{fieldname}' should be a list, got type '{typename}'"
+ msg = msg.format(**locals())
log.log(log.WARN, msg)
value = list(value)
return value