From eeca5666f43d2a61ff74d267d54543efd2398e95 Mon Sep 17 00:00:00 2001 From: jan Date: Thu, 12 Oct 2023 01:33:29 -0700 Subject: [PATCH] save new name on a separate line, for debugging convenience --- masque/library.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/masque/library.py b/masque/library.py index 56bf18d..6594c63 100644 --- a/masque/library.py +++ b/masque/library.py @@ -649,7 +649,8 @@ class ILibrary(ILibraryView, MutableMapping[str, 'Pattern'], metaclass=ABCMeta): name = tops[0] rename_map = self.add(other) - return rename_map.get(name, name) + new_name = rename_map.get(name, name) + return new_name def __le__(self, other: Mapping[str, 'Pattern']) -> Abstract: new_name = self << other