Merge pull request #3873 from jdufresne/drop-index

Remove unnecessary numeric placeholders from format strings
This commit is contained in:
Hugo 2019-05-27 09:47:26 +03:00 committed by GitHub
commit 7b4d2b271d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3000,13 +3000,13 @@ def _apply_env_variables(env=None):
try:
var = int(var) * units
except ValueError:
warnings.warn("{0} is not int".format(var_name))
warnings.warn("{} is not int".format(var_name))
continue
try:
setter(var)
except ValueError as e:
warnings.warn("{0}: {1}".format(var_name, e))
warnings.warn("{}: {}".format(var_name, e))
_apply_env_variables()