Remove unnecessary unicode prefixes

All strings are unicode by default in Python 3. No need to mark them as such.

Change-Id: If2b75ca342bf613d9c1bc3f34f6afcf51a22d640
This commit is contained in:
songwenping 2022-04-19 15:01:09 +08:00
parent 385d24786a
commit 2d610d0abc
3 changed files with 13 additions and 13 deletions

View File

@ -46,8 +46,8 @@ source_suffix = '.rst'
master_doc = 'index'
# General information about the project.
project = u'oslo.cache'
copyright = u'2014, OpenStack Foundation'
project = 'oslo.cache'
copyright = '2014, OpenStack Foundation'
# If true, '()' will be appended to :func: etc. cross-reference text.
add_function_parentheses = True
@ -79,8 +79,8 @@ htmlhelp_basename = '%sdoc' % project
latex_documents = [
('index',
'%s.tex' % project,
u'%s Documentation' % project,
u'OpenStack Foundation', 'manual'),
'%s Documentation' % project,
'OpenStack Foundation', 'manual'),
]
intersphinx_mapping = {

View File

@ -636,7 +636,7 @@ class CacheRegionTest(test_cache.BaseTestCase):
class UTF8KeyManglerTests(test_cache.BaseTestCase):
def test_key_is_utf8_encoded(self):
key = u'fäké1'
key = 'fäké1'
encoded = cache._sha1_mangle_key(key)
self.assertIsNotNone(encoded)

View File

@ -58,8 +58,8 @@ source_suffix = '.rst'
master_doc = 'index'
# General information about the project.
project = u'oslo.cache Release Notes'
copyright = u'2016, oslo.cache Developers'
project = 'oslo.cache Release Notes'
copyright = '2016, oslo.cache Developers'
# Release notes do not need a version in the title, they span
# multiple versions.
@ -208,8 +208,8 @@ latex_elements = {
# author, documentclass [howto, manual, or own class]).
latex_documents = [
('index', 'oslo.cacheReleaseNotes.tex',
u'oslo.cache Release Notes Documentation',
u'oslo.cache Developers', 'manual'),
'oslo.cache Release Notes Documentation',
'oslo.cache Developers', 'manual'),
]
# The name of an image file (relative to this directory) to place at the top of
@ -238,8 +238,8 @@ latex_documents = [
# (source start file, name, description, authors, manual section).
man_pages = [
('index', 'oslo.cacheReleaseNotes',
u'oslo.cache Release Notes Documentation',
[u'oslo.cache Developers'], 1)
'oslo.cache Release Notes Documentation',
['oslo.cache Developers'], 1)
]
# If true, show URL addresses after external links.
@ -252,8 +252,8 @@ man_pages = [
# dir menu entry, description, category)
texinfo_documents = [
('index', 'oslo.cacheReleaseNotes',
u'oslo.cache Release Notes Documentation',
u'oslo.cache Developers', 'oslo.cacheReleaseNotes',
'oslo.cache Release Notes Documentation',
'oslo.cache Developers', 'oslo.cacheReleaseNotes',
'One line description of project.',
'Miscellaneous'),
]