From 918b802ec2461cf59a049064f35fc7cfbb921c3d Mon Sep 17 00:00:00 2001 From: LiZekun <2954674728@qq.com> Date: Wed, 23 Feb 2022 10:27:32 +0800 Subject: [PATCH] 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: I7247c37d7e082ffa4ea9e8540b25351bb9b851c5 --- doc/source/conf.py | 16 ++++++++-------- releasenotes/source/conf.py | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index b45efff3f..d2c2d4a48 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -33,8 +33,8 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = u'TripleO Image Elements' -copyright = u'2014, OpenStack Developers' +project = 'TripleO Image Elements' +copyright = '2014, OpenStack Developers' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -175,8 +175,8 @@ latex_elements = {} # author, documentclass [howto, manual, or own class]). latex_documents = [ ('index', 'TripleOImageElements.tex', - u'TripleO Image Elements Documentation', - u'OpenStack Developers', 'manual'), + 'TripleO Image Elements Documentation', + 'OpenStack Developers', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -205,8 +205,8 @@ latex_documents = [ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ('index', 'tripleoimageelements', u'TripleO Image Elements Documentation', - [u'OpenStack Developers'], 1) + ('index', 'tripleoimageelements', 'TripleO Image Elements Documentation', + ['OpenStack Developers'], 1) ] # If true, show URL addresses after external links. @@ -220,8 +220,8 @@ man_pages = [ # dir menu entry, description, category) texinfo_documents = [ ('index', 'TripleOImageElements', - u'TripleO Image Elements Documentation', - u'OpenStack Developers', 'TripleOImageElements', + 'TripleO Image Elements Documentation', + 'OpenStack Developers', 'TripleOImageElements', 'One line description of project.', 'Miscellaneous'), ] diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py index cc9829374..fa6810520 100644 --- a/releasenotes/source/conf.py +++ b/releasenotes/source/conf.py @@ -44,8 +44,8 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = u'tripleo-image-elements Release Notes' -copyright = u'2016, TripleO Developers' +project = 'tripleo-image-elements Release Notes' +copyright = '2016, TripleO Developers' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -196,8 +196,8 @@ latex_elements = { # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - ('index', 'tripleo-image-elementsReleaseNotes.tex', u'tripleo-image-elements Release Notes Documentation', - u'2016, TripleO Developers', 'manual'), + ('index', 'tripleo-image-elementsReleaseNotes.tex', 'tripleo-image-elements Release Notes Documentation', + '2016, TripleO Developers', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -226,8 +226,8 @@ latex_documents = [ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ('index', 'tripleo-image-elementsreleasenotes', u'tripleo-image-elements Release Notes Documentation', - [u'2016, TripleO Developers'], 1) + ('index', 'tripleo-image-elementsreleasenotes', 'tripleo-image-elements Release Notes Documentation', + ['2016, TripleO Developers'], 1) ] # If true, show URL addresses after external links. @@ -240,8 +240,8 @@ man_pages = [ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - ('index', 'tripleo-image-elementsReleaseNotes', u'tripleo-image-elements Release Notes Documentation', - u'2016, TripleO Developers', 'tripleo-image-elementsReleaseNotes', 'One line description of project.', + ('index', 'tripleo-image-elementsReleaseNotes', 'tripleo-image-elements Release Notes Documentation', + '2016, TripleO Developers', 'tripleo-image-elementsReleaseNotes', 'One line description of project.', 'Miscellaneous'), ]