From 3652f431c2d8b9c10bf20b70f284d300d12e814a Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 28 Oct 2023 14:22:39 +1100 Subject: [PATCH] Simplified code --- src/PIL/ImageMath.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PIL/ImageMath.py b/src/PIL/ImageMath.py index eb6bbe6c62e..2c73acb9792 100644 --- a/src/PIL/ImageMath.py +++ b/src/PIL/ImageMath.py @@ -239,7 +239,7 @@ def eval(expression, _dict={}, **kw): args = ops.copy() args.update(_dict) args.update(kw) - for k, v in list(args.items()): + for k, v in args.items(): if hasattr(v, "im"): args[k] = _Operand(v)