commit 2e0d560d88c38f5c9ad682cc3659e20359a276a3 from: Aleksey Ryndin date: Sat Mar 30 18:06:15 2024 UTC Fix: unclosed pre commit - fae1c41ca13a679ffff26acddb65960b49160ee8 commit + 2e0d560d88c38f5c9ad682cc3659e20359a276a3 blob - 3bf2a7e59a678f38ffb841f709fa0c7f04a84072 blob + 6d6d48e8c9190758f892902e54739c3a5d3291d2 --- yah2g.py +++ yah2g.py @@ -172,7 +172,6 @@ class _RequestHandler(BaseHTTPRequestHandler): self.end_headers() self.wfile.write(self.server.header_file_bytes.replace(b"$URL", url.encode())) self.wfile.write(_build_navigation(url)) - with _Elem(self.wfile)() as pre: with _Elem(self.wfile)() as ul: for line in body.splitlines(): @@ -218,7 +217,7 @@ class _RequestHandler(BaseHTTPRequestHandler): p = ET.Element("p") p.text = line self.wfile.write(ET.tostring(p) + b"\r\n") - self.wfile.write(self.server.footer_file_bytes) + self.wfile.write(self.server.footer_file_bytes) def _main():