Skip to content

Commit

Permalink
memories: SopelIdentifierMemory casts key before popping
Browse files Browse the repository at this point in the history
  • Loading branch information
dgw authored Oct 20, 2023
1 parent a91ed84 commit f594db6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sopel/tools/memories.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,6 @@ def __contains__(self, key):

def __setitem__(self, key: Optional[str], value):
super().__setitem__(self._make_key(key), value)

def pop(self, key: str, default=None):
return super().pop(self._make_key(key), default)

0 comments on commit f594db6

Please sign in to comment.