summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2021-05-10 19:13:09 -0700
committerDavid Lord <davidism@gmail.com>2021-05-10 19:13:09 -0700
commitfeb25ffa085d032d39a13bbc7e70e39cb81d063e (patch)
treef276ea3f2fde15a2c779af38afcf9635d9d6a564
parent88173cb78e0781850c9a2c298b96744b1678399f (diff)
downloadmarkupsafe-feb25ffa085d032d39a13bbc7e70e39cb81d063e.tar.gz
call `string.Formatter.__init__`
-rw-r--r--src/markupsafe/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/markupsafe/__init__.py b/src/markupsafe/__init__.py
index d4c3c7d..c556eaf 100644
--- a/src/markupsafe/__init__.py
+++ b/src/markupsafe/__init__.py
@@ -213,6 +213,7 @@ class Markup(str):
class EscapeFormatter(string.Formatter):
def __init__(self, escape: t.Callable[[t.Any], Markup]) -> None:
self.escape = escape
+ super().__init__()
def format_field(self, value: t.Any, format_spec: str) -> str:
if hasattr(value, "__html_format__"):