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: Iaff03aaf0bad069f5d7b78ed0a6d209e36e19884
This commit is contained in:
LiZekun 2022-01-26 15:20:11 +08:00
parent f1036368c7
commit b145498431
2 changed files with 12 additions and 12 deletions

View File

@ -37,8 +37,8 @@ source_suffix = '.rst'
master_doc = 'index' master_doc = 'index'
# General information about the project. # General information about the project.
project = u'{{cookiecutter.repo_name}}' project = '{{cookiecutter.repo_name}}'
copyright = u'2017, OpenStack Developers' copyright = '2022, OpenStack Developers'
# openstackdocstheme options # openstackdocstheme options
openstackdocs_repo_name = '{{cookiecutter.repo_group}}/{{cookiecutter.repo_name}}' openstackdocs_repo_name = '{{cookiecutter.repo_group}}/{{cookiecutter.repo_name}}'
@ -73,8 +73,8 @@ htmlhelp_basename = '%sdoc' % project
latex_documents = [ latex_documents = [
('index', ('index',
'%s.tex' % project, '%s.tex' % project,
u'%s Documentation' % project, '%s Documentation' % project,
u'OpenStack Developers', 'manual'), 'OpenStack Developers', 'manual'),
] ]
# Example configuration for intersphinx: refer to the Python standard library. # Example configuration for intersphinx: refer to the Python standard library.

View File

@ -52,8 +52,8 @@ source_suffix = '.rst'
master_doc = 'index' master_doc = 'index'
# General information about the project. # General information about the project.
project = u'{{cookiecutter.module_name}} Release Notes' project = '{{cookiecutter.module_name}} Release Notes'
copyright = u'2017, OpenStack Developers' copyright = '2022, OpenStack Developers'
# openstackdocstheme options # openstackdocstheme options
openstackdocs_repo_name = '{{cookiecutter.repo_group}}/{{cookiecutter.repo_name}}' openstackdocs_repo_name = '{{cookiecutter.repo_group}}/{{cookiecutter.repo_name}}'
@ -209,8 +209,8 @@ latex_elements = {
# author, documentclass [howto, manual, or own class]). # author, documentclass [howto, manual, or own class]).
latex_documents = [ latex_documents = [
('index', '{{cookiecutter.module_name}}ReleaseNotes.tex', ('index', '{{cookiecutter.module_name}}ReleaseNotes.tex',
u'{{cookiecutter.module_name}} Release Notes Documentation', '{{cookiecutter.module_name}} Release Notes 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
@ -240,8 +240,8 @@ latex_documents = [
# (source start file, name, description, authors, manual section). # (source start file, name, description, authors, manual section).
man_pages = [ man_pages = [
('index', '{{cookiecutter.module_name}}rereleasenotes', ('index', '{{cookiecutter.module_name}}rereleasenotes',
u'{{cookiecutter.module_name}} Release Notes Documentation', '{{cookiecutter.module_name}} Release Notes Documentation',
[u'OpenStack Foundation'], 1) ['OpenStack Foundation'], 1)
] ]
# If true, show URL addresses after external links. # If true, show URL addresses after external links.
@ -255,8 +255,8 @@ man_pages = [
# dir menu entry, description, category) # dir menu entry, description, category)
texinfo_documents = [ texinfo_documents = [
('index', '{{cookiecutter.module_name}} ReleaseNotes', ('index', '{{cookiecutter.module_name}} ReleaseNotes',
u'{{cookiecutter.module_name}} Release Notes Documentation', '{{cookiecutter.module_name}} Release Notes Documentation',
u'OpenStack Foundation', '{{cookiecutter.module_name}}ReleaseNotes', 'OpenStack Foundation', '{{cookiecutter.module_name}}ReleaseNotes',
'One line description of project.', 'One line description of project.',
'Miscellaneous'), 'Miscellaneous'),
] ]