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 ---------------------------------------------- # -- Options for man page output ----------------------------------------------
# Grouping the document tree for man pages. # 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 -------------------------------------------------- # -- Options for HTML output --------------------------------------------------
@ -188,8 +188,8 @@ htmlhelp_basename = 'IronicInspectorAPIRefdoc'
latex_documents = [ latex_documents = [
('index', ('index',
'%s.tex' % project, '%s.tex' % project,
u'OpenStack Hardware Introspection API Documentation', 'OpenStack Hardware Introspection API Documentation',
u'OpenStack Foundation', 'manual'), 'OpenStack Foundation', '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

View File

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

View File

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

View File

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