summaryrefslogtreecommitdiff
path: root/src/jinja2/utils.py
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2021-05-17 06:41:42 -0700
committerDavid Lord <davidism@gmail.com>2021-05-17 06:41:42 -0700
commitf562a4fdea7bc10039ffa555367f8891e790ab53 (patch)
tree2ea719b59bfc76e5fcaa0193411368ceb5013d98 /src/jinja2/utils.py
parentfb564a84af82cc896c9b1be421a100e256254677 (diff)
downloadjinja2-f562a4fdea7bc10039ffa555367f8891e790ab53.tar.gz
fix deprecated `Markup` subclass
Diffstat (limited to 'src/jinja2/utils.py')
-rw-r--r--src/jinja2/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jinja2/utils.py b/src/jinja2/utils.py
index 8531174..2a2641c 100644
--- a/src/jinja2/utils.py
+++ b/src/jinja2/utils.py
@@ -834,7 +834,7 @@ class Namespace:
class Markup(markupsafe.Markup):
- def __new__(cls, base, encoding=None, errors="strict"): # type: ignore
+ def __new__(cls, base="", encoding=None, errors="strict"): # type: ignore
warnings.warn(
"'jinja2.Markup' is deprecated and will be removed in Jinja"
" 3.1. Import 'markupsafe.Markup' instead.",