Browse Source

[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 <markus.heiser@darmarit.de>
Markus Heiser 3 years ago
parent
commit
a1adc46fc8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/unit/test_utils.py

+ 2 - 2
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):