Skip to content

Commit

Permalink
fix: Make ConfigDict.setdefault API match dict
Browse files Browse the repository at this point in the history
  • Loading branch information
defnull committed Aug 28, 2024
1 parent eba2633 commit 8335971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bottle.py
Original file line number Diff line number Diff line change
Expand Up @@ -2441,7 +2441,7 @@ def update(self, *a, **ka):
for key, value in dict(*a, **ka).items():
self[prefix + key] = value

def setdefault(self, key, value):
def setdefault(self, key, value=None):
if key not in self:
self[key] = value
return self[key]
Expand Down

0 comments on commit 8335971

Please sign in to comment.