Minor deprecation patch (drei)

This commit is contained in:
Miroslav Stampar
2019-08-13 12:27:28 +02:00
parent aa2682ec16
commit fd4becf389
2 changed files with 2 additions and 2 deletions

View File

@@ -78,7 +78,7 @@ class ReqHandler(_BaseHTTPServer.BaseHTTPRequestHandler):
self.send_header(HTTP_HEADER.CONNECTION, "close")
if content is not None:
for match in re.finditer(b"<\!(\w+)\!>", content):
for match in re.finditer(b"<!(\w+)!>", content):
name = match.group(1)
_ = getattr(self, "_%s" % name.lower(), None)
if _: