remove unicode literal from code

All strings are considered as unicode string from Python 3.

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

Change-Id: I101a3fea0bdfb29694f06ced33cbac6cc6c72bdd
This commit is contained in:
LiZekun
2022-06-05 10:50:28 +08:00
parent 549885a16a
commit e9dfb1aa96
2 changed files with 12 additions and 12 deletions

View File

@@ -43,8 +43,8 @@ source_suffix = '.rst'
master_doc = 'index'
# General information about the project.
project = u'freezer-tempest-plugin'
copyright = u'2016, OpenStack Foundation'
project = 'freezer-tempest-plugin'
copyright = '2016, OpenStack Foundation'
# If true, '()' will be appended to :func: etc. cross-reference text.
add_function_parentheses = True
@@ -74,8 +74,8 @@ htmlhelp_basename = '%sdoc' % project
latex_documents = [
('index',
'%s.tex' % project,
u'%s Documentation' % project,
u'OpenStack Foundation', 'manual'),
'%s Documentation' % project,
'OpenStack Foundation', 'manual'),
]
# Example configuration for intersphinx: refer to the Python standard library.

View File

@@ -55,8 +55,8 @@ source_suffix = '.rst'
master_doc = 'index'
# General information about the project.
project = u'freezer Release Notes'
copyright = u'2016, OpenStack Foundation'
project = 'freezer Release Notes'
copyright = '2016, OpenStack Foundation'
# openstackdocstheme options
openstackdocs_repo_name = 'openstack/freezer-tempest-plugin'
@@ -215,8 +215,8 @@ latex_elements = {
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
('index', 'GlanceReleaseNotes.tex', u'Glance Release Notes Documentation',
u'Glance Developers', 'manual'),
('index', 'GlanceReleaseNotes.tex', 'Glance Release Notes Documentation',
'Glance Developers', 'manual'),
]
# The name of an image file (relative to this directory) to place at the top of
@@ -245,8 +245,8 @@ latex_documents = [
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
('index', 'glancereleasenotes', u'Glance Release Notes Documentation',
[u'Glance Developers'], 1)
('index', 'glancereleasenotes', 'Glance Release Notes Documentation',
['Glance Developers'], 1)
]
# If true, show URL addresses after external links.
@@ -259,8 +259,8 @@ man_pages = [
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
('index', 'GlanceReleaseNotes', u'Glance Release Notes Documentation',
u'Glance Developers', 'GlanceReleaseNotes',
('index', 'GlanceReleaseNotes', 'Glance Release Notes Documentation',
'Glance Developers', 'GlanceReleaseNotes',
'One line description of project.',
'Miscellaneous'),
]