From faf1ff8d4fde02215125102e499112bafd3b16ed Mon Sep 17 00:00:00 2001 From: "L. Karkkainen" Date: Fri, 27 Jan 2023 05:39:45 +0000 Subject: [PATCH] Fix the document title (needs positional argument). --- sanic/pages/autoindex.py | 2 +- sanic/pages/base.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sanic/pages/autoindex.py b/sanic/pages/autoindex.py index 39641d98..2054b784 100644 --- a/sanic/pages/autoindex.py +++ b/sanic/pages/autoindex.py @@ -26,7 +26,7 @@ class AutoIndex(BasePage): table.autoindex td:last-child { text-align: right; } """ ) - TITLE = "📁 File browser" + TITLE = "File browser" def __init__(self, files: Iterable[FileInfo], url: str) -> None: super().__init__() diff --git a/sanic/pages/base.py b/sanic/pages/base.py index 19f866ad..cfa5aa88 100644 --- a/sanic/pages/base.py +++ b/sanic/pages/base.py @@ -31,7 +31,7 @@ class BasePage(ABC): TITLE = "Unknown" def __init__(self) -> None: - self.doc = Document(title=self.TITLE, lang="en") + self.doc = Document(self.TITLE, lang="en") @property def style(self) -> str: