diff options
author | David Lord <davidism@gmail.com> | 2021-05-17 06:41:42 -0700 |
---|---|---|
committer | David Lord <davidism@gmail.com> | 2021-05-17 06:41:42 -0700 |
commit | f562a4fdea7bc10039ffa555367f8891e790ab53 (patch) | |
tree | 2ea719b59bfc76e5fcaa0193411368ceb5013d98 /src/jinja2/utils.py | |
parent | fb564a84af82cc896c9b1be421a100e256254677 (diff) | |
download | jinja2-f562a4fdea7bc10039ffa555367f8891e790ab53.tar.gz |
fix deprecated `Markup` subclass
Diffstat (limited to 'src/jinja2/utils.py')
-rw-r--r-- | src/jinja2/utils.py | 2 |
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.", |