Skip to content
Prev Previous commit
Next Next commit
Fix deprecation warning implementation
  • Loading branch information
kishorhange111 committed Apr 25, 2026
commit 60cf501f2c9176fb6eb81ce6e32af8df87519fb4
9 changes: 5 additions & 4 deletions Lib/http/cookies.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,10 +541,11 @@ def __repr__(self):
return '<%s: %s>' % (self.__class__.__name__, _spacejoin(l))

def js_output(self, attrs=None):
warnings._deprecated(
"http.cookies.BaseCookie.js_output",
"3.19",
"Use output() instead"
warnings.warn(
Comment thread
kishorhange111 marked this conversation as resolved.
Outdated
"http.cookies.BaseCookie.js_output() is deprecated and will "
"be removed in Python 3.19; use output() instead",
DeprecationWarning,
stacklevel=2,
)
Comment thread
picnixz marked this conversation as resolved.
"""Return a string suitable for JavaScript."""
result = []
Expand Down
Loading