Remove unicode literal from code

All strings are considered as unicode literal string from Python 3.

This patch drops the explicit unicode literal (u'...')
appearances from the unicode strings.

Change-Id: I52ae9180344baf408e6e8a932e9d59dc45ece9de
This commit is contained in:
LiZekun 2022-06-02 14:12:28 +08:00
parent 34afea3af9
commit 0406fa7531
3 changed files with 16 additions and 16 deletions

View File

@ -64,8 +64,8 @@ source_suffix = '.rst'
master_doc = 'index'
# General information about the project.
project = u'Ironic API Reference'
copyright = u'OpenStack Foundation'
project = 'Ironic API Reference'
copyright = 'OpenStack Foundation'
# html_context allows us to pass arbitrary values into the html template
html_context = {"bug_tag": "api-ref",
@ -103,7 +103,7 @@ pygments_style = 'native'
# -- Options for man page output ----------------------------------------------
# Grouping the document tree for man pages.
# List of tuples 'sourcefile', 'target', u'title', u'Authors name', 'manual'
# List of tuples 'sourcefile', 'target', 'title', 'Authors name', 'manual'
# -- Options for HTML output --------------------------------------------------
@ -189,8 +189,8 @@ htmlhelp_basename = 'ironicdoc'
# (source start file, target name, title, author, documentclass
# [howto/manual]).
latex_documents = [
('index', 'Ironic.tex', u'OpenStack Bare Metal API Documentation',
u'OpenStack Foundation', 'manual'),
('index', 'Ironic.tex', 'OpenStack Bare Metal API Documentation',
'OpenStack Foundation', 'manual'),
]
# The name of an image file (relative to this directory) to place at the top of

View File

@ -105,7 +105,7 @@ source_suffix = '.rst'
master_doc = 'index'
# General information about the project.
copyright = u'OpenStack Foundation'
copyright = 'OpenStack Foundation'
config_generator_config_file = '../../tools/config/ironic-config-generator.conf'
sample_config_basename = '_static/ironic'
@ -155,8 +155,8 @@ latex_documents = [
(
'index',
'doc-ironic.tex',
u'Ironic Documentation',
u'OpenStack Foundation',
'Ironic Documentation',
'OpenStack Foundation',
'manual'
),
]

View File

@ -64,8 +64,8 @@ source_suffix = '.rst'
master_doc = 'index'
# General information about the project.
project = u'Ironic Release Notes'
copyright = u'2015, Ironic Developers'
project = 'Ironic Release Notes'
copyright = '2015, Ironic Developers'
# Release notes do not need a version number in the title, they
# cover multiple releases.
@ -218,8 +218,8 @@ latex_elements = {
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
('index', 'IronicReleaseNotes.tex', u'Ironic Release Notes Documentation',
u'Ironic Developers', 'manual'),
('index', 'IronicReleaseNotes.tex', 'Ironic Release Notes Documentation',
'Ironic Developers', 'manual'),
]
# The name of an image file (relative to this directory) to place at the top of
@ -248,8 +248,8 @@ latex_documents = [
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
('index', 'ironicreleasenotes', u'Ironic Release Notes Documentation',
[u'Ironic Developers'], 1)
('index', 'ironicreleasenotes', 'Ironic Release Notes Documentation',
['Ironic Developers'], 1)
]
# If true, show URL addresses after external links.
@ -262,8 +262,8 @@ man_pages = [
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
('index', 'IronicReleaseNotes', u'Ironic Release Notes Documentation',
u'Ironic Developers', 'IronicReleaseNotes',
('index', 'IronicReleaseNotes', 'Ironic Release Notes Documentation',
'Ironic Developers', 'IronicReleaseNotes',
'One line description of project.',
'Miscellaneous'),
]