fixup! add the toolctx() context manager to simplify temporary retool() calls

This commit is contained in:
jan 2024-10-13 12:53:10 -07:00 committed by Jan Petykiewicz
parent adfaddc369
commit 572c32ad1b

View File

@ -309,7 +309,7 @@ class Pather(Builder):
for kk, tt in saved_tools.items(): for kk, tt in saved_tools.items():
if tt is None: if tt is None:
# delete if present # delete if present
self.tools.pop(tt, None) self.tools.pop(kk, None)
else: else:
self.tools[kk] = tt self.tools[kk] = tt