Skip to content

Commit

Permalink
mention markupsafe in deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism committed Apr 15, 2021
1 parent 002a6de commit e7b6128
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/markupsafe/_native.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def soft_unicode(s: t.Any) -> str:

warnings.warn(
"'soft_unicode' has been renamed to 'soft_str'. The old name"
" will be removed in version 2.1.",
" will be removed in MarkupSafe 2.1.",
DeprecationWarning,
stacklevel=2,
)
Expand Down
2 changes: 1 addition & 1 deletion src/markupsafe/_speedups.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ soft_unicode(PyObject *self, PyObject *s)
PyErr_WarnEx(
PyExc_DeprecationWarning,
"'soft_unicode' has been renamed to 'soft_str'. The old name"
" will be removed in version 2.1.",
" will be removed in MarkupSafe 2.1.",
2
);
return soft_str(self, s);
Expand Down

0 comments on commit e7b6128

Please sign in to comment.