From 5af54331f20d4513e13de04e3fed5c211139f93c Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Thu, 26 Sep 2024 23:20:48 +1000 Subject: [PATCH] Do not call unescape in Python 3.9 --- projects/six/fuzz_six.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/six/fuzz_six.py b/projects/six/fuzz_six.py index cd3746ed3bd9..11531d44f074 100644 --- a/projects/six/fuzz_six.py +++ b/projects/six/fuzz_six.py @@ -55,7 +55,8 @@ def TestOneInput(data): except (TypeError, UnicodeDecodeError): pass - six.moves.html_parser.HTMLParser().unescape( + if sys.version_info < (3, 9): + six.moves.html_parser.HTMLParser().unescape( fdp.ConsumeUnicodeNoSurrogates(fdp.ConsumeIntInRange(1, 1024)))