From 0406fa753136071019810cb7bc1c087853ec8327 Mon Sep 17 00:00:00 2001 From: LiZekun <2954674728@qq.com> Date: Thu, 2 Jun 2022 14:12:28 +0800 Subject: [PATCH] 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: I52ae9180344baf408e6e8a932e9d59dc45ece9de --- api-ref/source/conf.py | 10 +++++----- doc/source/conf.py | 6 +++--- releasenotes/source/conf.py | 16 ++++++++-------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/api-ref/source/conf.py b/api-ref/source/conf.py index 0e3898f3da..98de456273 100644 --- a/api-ref/source/conf.py +++ b/api-ref/source/conf.py @@ -64,8 +64,8 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = u'Ironic API Reference' -copyright = u'OpenStack Foundation' +project = 'Ironic API Reference' +copyright = 'OpenStack Foundation' # html_context allows us to pass arbitrary values into the html template html_context = {"bug_tag": "api-ref", @@ -103,7 +103,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 -------------------------------------------------- @@ -189,8 +189,8 @@ htmlhelp_basename = 'ironicdoc' # (source start file, target name, title, author, documentclass # [howto/manual]). latex_documents = [ - ('index', 'Ironic.tex', u'OpenStack Bare Metal API Documentation', - u'OpenStack Foundation', 'manual'), + ('index', 'Ironic.tex', 'OpenStack Bare Metal API Documentation', + 'OpenStack Foundation', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of diff --git a/doc/source/conf.py b/doc/source/conf.py index 2746ac9345..a5b2edcfab 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -105,7 +105,7 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -copyright = u'OpenStack Foundation' +copyright = 'OpenStack Foundation' config_generator_config_file = '../../tools/config/ironic-config-generator.conf' sample_config_basename = '_static/ironic' @@ -155,8 +155,8 @@ latex_documents = [ ( 'index', 'doc-ironic.tex', - u'Ironic Documentation', - u'OpenStack Foundation', + 'Ironic Documentation', + 'OpenStack Foundation', 'manual' ), ] diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py index 9fd61cf7a8..ada491a3cd 100644 --- a/releasenotes/source/conf.py +++ b/releasenotes/source/conf.py @@ -64,8 +64,8 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = u'Ironic Release Notes' -copyright = u'2015, Ironic Developers' +project = 'Ironic Release Notes' +copyright = '2015, Ironic Developers' # Release notes do not need a version number in the title, they # cover multiple releases. @@ -218,8 +218,8 @@ latex_elements = { # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - ('index', 'IronicReleaseNotes.tex', u'Ironic Release Notes Documentation', - u'Ironic Developers', 'manual'), + ('index', 'IronicReleaseNotes.tex', 'Ironic Release Notes Documentation', + 'Ironic Developers', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -248,8 +248,8 @@ latex_documents = [ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ('index', 'ironicreleasenotes', u'Ironic Release Notes Documentation', - [u'Ironic Developers'], 1) + ('index', 'ironicreleasenotes', 'Ironic Release Notes Documentation', + ['Ironic Developers'], 1) ] # If true, show URL addresses after external links. @@ -262,8 +262,8 @@ man_pages = [ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - ('index', 'IronicReleaseNotes', u'Ironic Release Notes Documentation', - u'Ironic Developers', 'IronicReleaseNotes', + ('index', 'IronicReleaseNotes', 'Ironic Release Notes Documentation', + 'Ironic Developers', 'IronicReleaseNotes', 'One line description of project.', 'Miscellaneous'), ]