]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
web_test: Fix the build 3474/head
authorBen Darnell <ben@bendarnell.com>
Thu, 27 Mar 2025 20:52:23 +0000 (16:52 -0400)
committerBen Darnell <ben@bendarnell.com>
Thu, 27 Mar 2025 20:52:23 +0000 (16:52 -0400)
A PR that failed lint (#3451) was merged because CI somehow didn't run
on it.

tornado/test/web_test.py

index 45bf211b2b14549741e4167ae094d405d1084848..6a04059dbcb870111e1077b1386fa85b2729b22f 100644 (file)
@@ -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")