summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2021-04-15 15:27:44 -0700
committerDavid Lord <davidism@gmail.com>2021-04-15 15:27:44 -0700
commite7b61283f7bf9677c0d809ebe5c9390255907320 (patch)
tree4a6f05cb3cfd80a52bed82c67cecda53cdba3211
parent002a6de88007335fd60587d881acb66fd989d0b5 (diff)
downloadmarkupsafe-e7b61283f7bf9677c0d809ebe5c9390255907320.tar.gz
mention markupsafe in deprecation message
-rw-r--r--src/markupsafe/_native.py2
-rw-r--r--src/markupsafe/_speedups.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/markupsafe/_native.py b/src/markupsafe/_native.py
index 1a3f214..6f7eb7a 100644
--- a/src/markupsafe/_native.py
+++ b/src/markupsafe/_native.py
@@ -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,
)
diff --git a/src/markupsafe/_speedups.c b/src/markupsafe/_speedups.c
index 7b7e57f..44967b1 100644
--- a/src/markupsafe/_speedups.c
+++ b/src/markupsafe/_speedups.c
@@ -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);