From: Ben Darnell Date: Thu, 27 Mar 2025 20:52:23 +0000 (-0400) Subject: web_test: Fix the build X-Git-Tag: v6.5.0b1~18^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3474%2Fhead;p=thirdparty%2Ftornado.git web_test: Fix the build A PR that failed lint (#3451) was merged because CI somehow didn't run on it. --- diff --git a/tornado/test/web_test.py b/tornado/test/web_test.py index 45bf211b..6a04059d 100644 --- a/tornado/test/web_test.py +++ b/tornado/test/web_test.py @@ -710,8 +710,8 @@ class SetHeaderHandler(RequestHandler): def get(self): # tests the validity of web.RequestHandler._VALID_HEADER_CHARS illegal_chars = [chr(o) for o in range(0, 0x20)] - illegal_chars.append(chr(0x7f)) - illegal_chars.remove('\t') + illegal_chars.append(chr(0x7F)) + illegal_chars.remove("\t") for char in illegal_chars: try: self.set_header("X-Foo", "foo" + char + "bar")