mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-21 04:34:47 +03:00
Unwrap dict when calling
This commit is contained in:
parent
da0c302ea4
commit
dd69c7fe7a
|
@ -279,7 +279,7 @@ class CommandViewer(Viewer):
|
||||||
if not isinstance(command, str):
|
if not isinstance(command, str):
|
||||||
raise TypeError(f"'command' must be 'str' not '{type(command)}'")
|
raise TypeError(f"'command' must be 'str' not '{type(command)}'")
|
||||||
values = {"file": quote(file), **options}
|
values = {"file": quote(file), **options}
|
||||||
return command.format(values)
|
return command.format(**values)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
Loading…
Reference in New Issue
Block a user