From e9dfb1aa96dee102ec1155274a032665005cb4d8 Mon Sep 17 00:00:00 2001 From: LiZekun <2954674728@qq.com> Date: Sun, 5 Jun 2022 10:50:28 +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: I101a3fea0bdfb29694f06ced33cbac6cc6c72bdd --- doc/source/conf.py | 8 ++++---- releasenotes/source/conf.py | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 96a3932..f6d204c 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -43,8 +43,8 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = u'freezer-tempest-plugin' -copyright = u'2016, OpenStack Foundation' +project = 'freezer-tempest-plugin' +copyright = '2016, OpenStack Foundation' # If true, '()' will be appended to :func: etc. cross-reference text. add_function_parentheses = True @@ -74,8 +74,8 @@ htmlhelp_basename = '%sdoc' % project latex_documents = [ ('index', '%s.tex' % project, - u'%s Documentation' % project, - u'OpenStack Foundation', 'manual'), + '%s Documentation' % project, + 'OpenStack Foundation', 'manual'), ] # Example configuration for intersphinx: refer to the Python standard library. diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py index 3b6875e..4a0b15e 100644 --- a/releasenotes/source/conf.py +++ b/releasenotes/source/conf.py @@ -55,8 +55,8 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = u'freezer Release Notes' -copyright = u'2016, OpenStack Foundation' +project = 'freezer Release Notes' +copyright = '2016, OpenStack Foundation' # openstackdocstheme options openstackdocs_repo_name = 'openstack/freezer-tempest-plugin' @@ -215,8 +215,8 @@ latex_elements = { # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - ('index', 'GlanceReleaseNotes.tex', u'Glance Release Notes Documentation', - u'Glance Developers', 'manual'), + ('index', 'GlanceReleaseNotes.tex', 'Glance Release Notes Documentation', + 'Glance Developers', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -245,8 +245,8 @@ latex_documents = [ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ('index', 'glancereleasenotes', u'Glance Release Notes Documentation', - [u'Glance Developers'], 1) + ('index', 'glancereleasenotes', 'Glance Release Notes Documentation', + ['Glance Developers'], 1) ] # If true, show URL addresses after external links. @@ -259,8 +259,8 @@ man_pages = [ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - ('index', 'GlanceReleaseNotes', u'Glance Release Notes Documentation', - u'Glance Developers', 'GlanceReleaseNotes', + ('index', 'GlanceReleaseNotes', 'Glance Release Notes Documentation', + 'Glance Developers', 'GlanceReleaseNotes', 'One line description of project.', 'Miscellaneous'), ]