Skip to content

Commit a38315d

Browse files
authored
Do not leak method_name in DeprecatedList
1 parent 9911bde commit a38315d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

importlib_metadata/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ def wrapped(self, *args, **kwargs):
310310
'sort',
311311
]:
312312
locals()[method_name] = _wrap_deprecated_method(method_name)
313+
del method_name
313314

314315
def __add__(self, other):
315316
if not isinstance(other, tuple):

0 commit comments

Comments
 (0)