Skip to content

Commit

Permalink
Remove unicode literal from code
Browse files Browse the repository at this point in the history
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
  • Loading branch information
LiZekun authored and juliakreger committed Oct 27, 2022
1 parent 0e54080 commit fe2abe1
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions api-ref/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
# -- 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 --------------------------------------------------
Expand Down Expand Up @@ -188,8 +188,8 @@
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
Expand Down
6 changes: 3 additions & 3 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
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'
Expand Down Expand Up @@ -112,8 +112,8 @@
(
'index',
'doc-ironic-inspector.tex',
u'Ironic Inspector Documentation',
u'OpenStack Foundation',
'Ironic Inspector Documentation',
'OpenStack Foundation',
'manual'
),
]
Expand Down
6 changes: 3 additions & 3 deletions ironic_inspector/test/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,9 @@ def _fake_status(self, finished=mock.ANY, state=mock.ANY, error=mock.ANY,
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(
Expand Down
16 changes: 8 additions & 8 deletions releasenotes/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
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.
Expand Down Expand Up @@ -218,8 +218,8 @@
# 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
Expand Down Expand Up @@ -249,8 +249,8 @@
# (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.
Expand All @@ -264,8 +264,8 @@
# 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'),
]
Expand Down

0 comments on commit fe2abe1

Please sign in to comment.