Skip to content

Commit 43e8457

Browse files
pylint: fix redundant-u-string-prefix cases
Fix all cases of W1406 redundant-u-string-prefix. Part of #270
1 parent 2477322 commit 43e8457

File tree

2 files changed

+11
-17
lines changed

2 files changed

+11
-17
lines changed

docs/source/conf.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
master_doc = 'index'
4949

5050
# General information about the project.
51-
project = u'Tarantool python client library'
52-
copyright = u'2011-2022, tarantool-python AUTHORS'
51+
project = 'Tarantool python client library'
52+
copyright = '2011-2022, tarantool-python AUTHORS'
5353

5454
# The version info for the project you're documenting, acts as replacement for
5555
# |version| and |release|, also used in various other places throughout the
@@ -280,8 +280,8 @@
280280
# Grouping the document tree into LaTeX files. List of tuples
281281
# (source start file, target name, title, author, documentclass [howto/manual]).
282282
latex_documents = [
283-
('index', 'Tarantoolpythonclientlibrary.tex', u'Tarantool python client library Documentation',
284-
u'tarantool-python AUTHORS', 'manual'),
283+
('index', 'Tarantoolpythonclientlibrary.tex', 'Tarantool python client library Documentation',
284+
'tarantool-python AUTHORS', 'manual'),
285285
]
286286

287287
# The name of an image file (relative to this directory) to place at the top of
@@ -310,8 +310,8 @@
310310
# One entry per manual page. List of tuples
311311
# (source start file, name, description, authors, manual section).
312312
man_pages = [
313-
('index', 'tarantoolpythonclientlibrary', u'Tarantool python client library Documentation',
314-
[u'tarantool-python AUTHORS'], 1)
313+
('index', 'tarantoolpythonclientlibrary', 'Tarantool python client library Documentation',
314+
['tarantool-python AUTHORS'], 1)
315315
]
316316

317317
# If true, show URL addresses after external links.
@@ -324,8 +324,8 @@
324324
# (source start file, target name, title, author,
325325
# dir menu entry, description, category)
326326
texinfo_documents = [
327-
('index', 'Tarantoolpythonclientlibrary', u'Tarantool python client library Documentation',
328-
u'tarantool-python AUTHORS', 'Tarantoolpythonclientlibrary', 'One line description of project.',
327+
('index', 'Tarantoolpythonclientlibrary', 'Tarantool python client library Documentation',
328+
'tarantool-python AUTHORS', 'Tarantoolpythonclientlibrary', 'One line description of project.',
329329
'Miscellaneous'),
330330
]
331331

test/suites/test_schema.py

+3-9
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,9 @@ def setUpClass(cls):
9494
fetch_schema=False)
9595
cls.sch = cls.con.schema
9696

97-
# The relevant test cases mainly target Python 2, where
98-
# a user may want to pass a string literal as a space or
99-
# an index name and don't bother whether all symbols in it
100-
# are ASCII.
10197
cls.unicode_space_name_literal = '∞'
10298
cls.unicode_index_name_literal = '→'
10399

104-
cls.unicode_space_name_u = u'∞'
105-
cls.unicode_index_name_u = u'→'
106100
cls.unicode_space_id, cls.unicode_index_id = cls.srv.admin("""
107101
do
108102
local space = box.schema.create_space('\\xe2\\x88\\x9e')
@@ -164,13 +158,13 @@ def fetch_count(self):
164158

165159
def verify_unicode_space(self, space):
166160
self.assertEqual(space.sid, self.unicode_space_id)
167-
self.assertEqual(space.name, self.unicode_space_name_u)
161+
self.assertEqual(space.name, self.unicode_space_name_literal)
168162
self.assertEqual(space.arity, 1)
169163

170164
def verify_unicode_index(self, index):
171-
self.assertEqual(index.space.name, self.unicode_space_name_u)
165+
self.assertEqual(index.space.name, self.unicode_space_name_literal)
172166
self.assertEqual(index.iid, self.unicode_index_id)
173-
self.assertEqual(index.name, self.unicode_index_name_u)
167+
self.assertEqual(index.name, self.unicode_index_name_literal)
174168
self.assertEqual(len(index.parts), 1)
175169

176170
def test_01_space_bad(self):

0 commit comments

Comments
 (0)