mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 09:56:17 +03:00
Remove unnecessary numeric placeholders from format strings
Unnecessary since Python 2.7.
This commit is contained in:
parent
e24b494f88
commit
3f2cfb2027
|
@ -3000,13 +3000,13 @@ def _apply_env_variables(env=None):
|
||||||
try:
|
try:
|
||||||
var = int(var) * units
|
var = int(var) * units
|
||||||
except ValueError:
|
except ValueError:
|
||||||
warnings.warn("{0} is not int".format(var_name))
|
warnings.warn("{} is not int".format(var_name))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
try:
|
try:
|
||||||
setter(var)
|
setter(var)
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
warnings.warn("{0}: {1}".format(var_name, e))
|
warnings.warn("{}: {}".format(var_name, e))
|
||||||
|
|
||||||
|
|
||||||
_apply_env_variables()
|
_apply_env_variables()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user