From 8ad510e60b2b45d875b7de13f8fb10612f2230fc Mon Sep 17 00:00:00 2001 From: LiZekun <2954674728@qq.com> Date: Mon, 6 Jun 2022 19:36:41 +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: I71621b95c87e7c10e86d8341173967235912053d --- doc/source/conf.py | 6 +++--- releasenotes/source/conf.py | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 4b4189d3..2349713a 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -36,7 +36,7 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -copyright = u'2017, OpenStack Developers' +copyright = '2017, OpenStack Developers' # openstackdocstheme options openstackdocs_repo_name = 'openstack/neutron-tempest-plugin' @@ -71,8 +71,8 @@ htmlhelp_basename = 'openstackdoc' latex_documents = [ ('index', 'openstack.tex', - u'openstack Documentation', - u'OpenStack Developers', 'manual'), + 'openstack Documentation', + 'OpenStack Developers', 'manual'), ] # Example configuration for intersphinx: refer to the Python standard library. diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py index 24a38a48..5bf1fe1e 100644 --- a/releasenotes/source/conf.py +++ b/releasenotes/source/conf.py @@ -52,7 +52,7 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -copyright = u'2017, Neutron Tempest Plugin Developers' +copyright = '2017, Neutron Tempest Plugin Developers' # openstackdocstheme options openstackdocs_repo_name = 'openstack/neutron-tempest-plugin' @@ -190,8 +190,8 @@ htmlhelp_basename = 'NeutronTempestPluginReleaseNotesdoc' # author, documentclass [howto, manual, or own class]). latex_documents = [ ('index', 'NeutronTempestPluginReleaseNotes.tex', - u'Neutron Tempest Plugin Release Notes Documentation', - u'Neutron Tempest Plugin Developers', 'manual'), + 'Neutron Tempest Plugin Release Notes Documentation', + 'Neutron Tempest Plugin Developers', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -221,8 +221,8 @@ latex_documents = [ # (source start file, name, description, authors, manual section). man_pages = [ ('index', 'NeutronTempestPluginrereleasenotes', - u'Neutron Tempest Plugin Release Notes Documentation', - [u'Neutron Tempest Plugin Developers'], 1) + 'Neutron Tempest Plugin Release Notes Documentation', + ['Neutron Tempest Plugin Developers'], 1) ] # If true, show URL addresses after external links. @@ -236,8 +236,8 @@ man_pages = [ # dir menu entry, description, category) texinfo_documents = [ ('index', 'Neutron Tempest Plugin ReleaseNotes', - u'Neutron Tempest Plugin Release Notes Documentation', - u'Neutron Tempest Plugin Developers', + 'Neutron Tempest Plugin Release Notes Documentation', + 'Neutron Tempest Plugin Developers', 'NeutronTempestPluginReleaseNotes', 'One line description of project.', 'Miscellaneous'),