diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2020-05-31 08:43:36 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-07-01 20:16:26 -0400 |
| commit | 00ce1222d90ca28c6096d847c6ffe52e26bd5db2 (patch) | |
| tree | c2ac90b986cb35ca607d03ca4b05ef2e2bef3fb2 /distutils | |
| parent | c202075affc8a4d03401a4877639a96907438d83 (diff) | |
| download | external_python_setuptools-00ce1222d90ca28c6096d847c6ffe52e26bd5db2.tar.gz external_python_setuptools-00ce1222d90ca28c6096d847c6ffe52e26bd5db2.tar.bz2 external_python_setuptools-00ce1222d90ca28c6096d847c6ffe52e26bd5db2.zip | |
Restore Python 3.5 syntax compatibility in distutils.dist.
Diffstat (limited to 'distutils')
| -rw-r--r-- | distutils/dist.py | 3 |
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 |
