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

View File

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

View File

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