From 89a0a90f2d982cbeb594cd7b14f9f828e3857f91 Mon Sep 17 00:00:00 2001 From: farthestmage Date: Mon, 17 Nov 2025 20:32:35 +0530 Subject: [PATCH] Added test cases + fixed C1 error --- django/utils/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/utils/html.py b/django/utils/html.py index 167cf640a9..e15b2b2233 100644 --- a/django/utils/html.py +++ b/django/utils/html.py @@ -78,7 +78,7 @@ _js_escapes = { # Escape every ASCII character with a value less than 32 (C0) && 127-159(C1) _js_escapes.update((ord("%c" % z), "\\u%04X" % z) for z in range(32)) -_js_escapes.update((ord("%c" % z), "\\u%04X" % z) for z in range(range(0x80, 0xA0))) +_js_escapes.update((ord("%c" % z), "\\u%04X" % z) for z in range(0x80, 0xA0)) @keep_lazy(SafeString)