From dd69c7fe7af30e93399312a32740e18f8ede19c8 Mon Sep 17 00:00:00 2001 From: Mihail Shinder Date: Fri, 19 Nov 2021 14:24:26 +0200 Subject: [PATCH] Unwrap dict when calling --- src/PIL/ImageShow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PIL/ImageShow.py b/src/PIL/ImageShow.py index b6aa02261..103b7e1c7 100644 --- a/src/PIL/ImageShow.py +++ b/src/PIL/ImageShow.py @@ -279,7 +279,7 @@ class CommandViewer(Viewer): if not isinstance(command, str): raise TypeError(f"'command' must be 'str' not '{type(command)}'") values = {"file": quote(file), **options} - return command.format(values) + return command.format(**values) if __name__ == "__main__":