From a1adc46fc886aeb41be152583dc4bbfdae7706d4 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Tue, 31 Aug 2021 10:54:40 +0200 Subject: [PATCH] [pylint] Pylint 2.10 - fix redundant-u-string-prefix Pylint 2.10 added new default checks [1]: redundant-u-string-prefix: Emitted when the u prefix is added to a string [1] https://pylint.pycqa.org/en/latest/whatsnew/2.10.html [2] https://github.com/PyCQA/pylint/issues/4102 Signed-off-by: Markus Heiser --- tests/unit/test_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index 2c244966b..91ec2499d 100644 --- a/tests/unit/test_utils.py +++ b/tests/unit/test_utils.py @@ -114,9 +114,9 @@ class TestUtils(SearxTestCase): def test_ecma_unscape(self): self.assertEqual(utils.ecma_unescape('text%20with%20space'), 'text with space') self.assertEqual(utils.ecma_unescape('text using %xx: %F3'), - u'text using %xx: ó') + 'text using %xx: ó') self.assertEqual(utils.ecma_unescape('text using %u: %u5409, %u4E16%u754c'), - u'text using %u: 吉, 世界') + 'text using %u: 吉, 世界') class TestHTMLTextExtractor(SearxTestCase):