Skip to content

Commit

Permalink
fix: depr() should return DeprecationWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
defnull committed Oct 15, 2024
1 parent 1a6d990 commit 7a7e544
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bottle.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ def depr(major, minor, cause, fix, stacklevel=3):
if DEBUG == 'strict':
raise DeprecationWarning(text)
warnings.warn(text, DeprecationWarning, stacklevel=stacklevel)
return DeprecationWarning(text)


def makelist(data): # This is just too handy
Expand Down

0 comments on commit 7a7e544

Please sign in to comment.