Commit 00ce1222 authored by Jason R. Coombs's avatar Jason R. Coombs

Restore Python 3.5 syntax compatibility in distutils.dist.

parent c202075a
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment