From 977c4e560259ee760c885a5cfd85f96358d1ef5e Mon Sep 17 00:00:00 2001 From: Laurent Monin Date: Fri, 24 May 2024 13:10:01 +0200 Subject: [PATCH] IgnoreUpdatesContext: rename __exit__() parameters to match Python documentation It avoids defining `type` which is a builtin. --- picard/util/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/picard/util/__init__.py b/picard/util/__init__.py index d88f34be5..693d93d84 100644 --- a/picard/util/__init__.py +++ b/picard/util/__init__.py @@ -574,7 +574,7 @@ class IgnoreUpdatesContext: if self._entered == 1 and self._on_first_enter: self._on_first_enter() - def __exit__(self, type, value, tb): + def __exit__(self, exc_type, exc_value, traceback): self._entered -= 1 if self._on_exit: self._on_exit()