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: I662c72686a7e0404da62fb677c666885ff5ac65a
This commit is contained in:
LiZekun 2022-06-05 09:07:52 +08:00 committed by Julia Kreger
parent 0e54080b0c
commit fe2abe1130
4 changed files with 17 additions and 17 deletions

View File

@ -100,7 +100,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 --------------------------------------------------
@ -188,8 +188,8 @@ htmlhelp_basename = 'IronicInspectorAPIRefdoc'
latex_documents = [
('index',
'%s.tex' % project,
u'OpenStack Hardware Introspection API Documentation',
u'OpenStack Foundation', 'manual'),
'OpenStack Hardware Introspection API Documentation',
'OpenStack Foundation', 'manual'),
]
# The name of an image file (relative to this directory) to place at the top of

View File

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

View File

@ -218,9 +218,9 @@ class Base(base.NodeTest):
return {'uuid': self.uuid, 'finished': finished, 'error': error,
'state': state, 'finished_at': finished_at,
'started_at': started_at,
'links': [{u'href': u'%s/v1/introspection/%s' % (self.ROOT_URL,
self.uuid),
u'rel': u'self'}]}
'links': [{'href': '%s/v1/introspection/%s' % (self.ROOT_URL,
self.uuid),
'rel': 'self'}]}
def check_status(self, status, finished, state, error=None):
self.assertEqual(

View File

@ -64,8 +64,8 @@ source_suffix = '.rst'
master_doc = 'index'
# General information about the project.
project = u'Ironic Inspector Release Notes'
copyright = u'2015, Ironic Inspector Developers'
project = 'Ironic Inspector Release Notes'
copyright = '2015, Ironic Inspector Developers'
# Release notes are version independent.
# The short X.Y version.
@ -218,8 +218,8 @@ latex_elements = {
# author, documentclass [howto, manual, or own class]).
latex_documents = [
('index', 'IronicInspectorReleaseNotes.tex',
u'Ironic Inspector Release Notes Documentation',
u'Ironic Inspector Developers', 'manual'),
'Ironic Inspector Release Notes Documentation',
'Ironic Inspector Developers', 'manual'),
]
# The name of an image file (relative to this directory) to place at the top of
@ -249,8 +249,8 @@ latex_documents = [
# (source start file, name, description, authors, manual section).
man_pages = [
('index', 'ironicinspectorreleasenotes',
u'Ironic Inspector Release Notes Documentation',
[u'Ironic Inspector Developers'], 1)
'Ironic Inspector Release Notes Documentation',
['Ironic Inspector Developers'], 1)
]
# If true, show URL addresses after external links.
@ -264,8 +264,8 @@ man_pages = [
# dir menu entry, description, category)
texinfo_documents = [
('index', 'IronicInspectorReleaseNotes',
u'Ironic Inspector Release Notes Documentation',
u'Ironic Inspector Developers', 'IronicInspectorReleaseNotes',
'Ironic Inspector Release Notes Documentation',
'Ironic Inspector Developers', 'IronicInspectorReleaseNotes',
'One line description of project.',
'Miscellaneous'),
]