From ae0aad4b37c15afeaef6a4c039f2938bed38653e Mon Sep 17 00:00:00 2001 From: niuke Date: Mon, 29 Aug 2022 18:49:38 +0800 Subject: [PATCH] remove unicode prefix 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: I9ecbedd5c31ed098c4a6d913a1cafebd7af49573 --- doc/source/conf.py | 10 +++++----- releasenotes/source/conf.py | 16 ++++++++-------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 4575a5b..ea40269 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -51,7 +51,7 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = u'OpenStackClient CLI Base' +project = 'OpenStackClient CLI Base' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -186,8 +186,8 @@ latex_elements = { # . latex_documents = [ ('index', 'OpenStackCommandLineClient.tex', - u'OpenStack Command Line Client Documentation', - u'OpenStack'), + 'OpenStack Command Line Client Documentation', + 'OpenStack'), ] # The name of an image file (relative to this directory) to place at the top of @@ -228,8 +228,8 @@ latex_documents = [ # dir menu entry, description, category) texinfo_documents = [ ('index', 'OpenStackCommandLineClient', - u'OpenStack Command Line Client Documentation', - u'OpenStack', 'OpenStackCommandLineClient', + 'OpenStack Command Line Client Documentation', + 'OpenStack', 'OpenStackCommandLineClient', 'One line description of project.', 'Miscellaneous'), ] diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py index 0c30860..a1703e0 100644 --- a/releasenotes/source/conf.py +++ b/releasenotes/source/conf.py @@ -87,8 +87,8 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = u'osc-lib Release Notes' -copyright = u'2016, osc-lib Developers' +project = 'osc-lib Release Notes' +copyright = '2016, osc-lib Developers' # openstackdocstheme options openstackdocs_repo_name = 'openstack/osc-lib' @@ -262,8 +262,8 @@ latex_elements = { latex_documents = [( 'index', 'OSC_LIBReleaseNotes.tex', - u'osc-lib Release Notes Documentation', - u'osc-lib Developers', + 'osc-lib Release Notes Documentation', + 'osc-lib Developers', 'manual'), ] @@ -301,8 +301,8 @@ latex_documents = [( man_pages = [( 'index', 'osc_libreleasenotes', - u'osc-lib Release Notes Documentation', - [u'osc-lib Developers'], + 'osc-lib Release Notes Documentation', + ['osc-lib Developers'], 1, )] @@ -319,8 +319,8 @@ man_pages = [( texinfo_documents = [( 'index', 'OSC_LIBReleaseNotes', - u'osc-lib Release Notes Documentation', - u'osc-lib Developers', + 'osc-lib Release Notes Documentation', + 'osc-lib Developers', 'OSC_LIBReleaseNotes', 'Common base library for OpenStackClient plugins.', 'Miscellaneous',