From fb0477e4882b8362da284881d953376d67ca3a36 Mon Sep 17 00:00:00 2001 From: "wu.shiming" Date: Mon, 1 Mar 2021 17:09:06 +0800 Subject: [PATCH] remove unicode from code In Python 3, all strings are represented in Unicode.In Python 2 are stored internally as 8-bit ASCII, hence it is required to attach 'u' to make it Unicode. It is no longer necessary now. Change-Id: I3f2204d96ac3834ec652b95fd4ad47e4f5dcc7f2 --- 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 d20942e..3d19058 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -37,8 +37,8 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = u'blazar-tempest-plugin' -copyright = u'2017, OpenStack Developers' +project = 'blazar-tempest-plugin' +copyright = '2017, OpenStack Developers' # openstackdocstheme options openstackdocs_repo_name = 'openstack/blazar-tempest-plugin' @@ -76,8 +76,8 @@ htmlhelp_basename = '%sdoc' % project latex_documents = [ ('index', 'doc-%s.tex' % project, - u'%s Documentation' % project, - u'OpenStack Developers', 'manual'), + '%s Documentation' % project, + 'OpenStack Developers', 'manual'), ] # Disable usage of xindy https://bugzilla.redhat.com/show_bug.cgi?id=1643664 diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py index 00f6578..3c2549c 100644 --- a/releasenotes/source/conf.py +++ b/releasenotes/source/conf.py @@ -52,8 +52,8 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = u'blazar-tempest-plugin Release Notes' -copyright = u'2017, OpenStack Developers' +project = 'blazar-tempest-plugin Release Notes' +copyright = '2017, OpenStack Developers' # openstackdocstheme options openstackdocs_repo_name = 'openstack/blazar-tempest-plugin' @@ -213,8 +213,8 @@ latex_elements = { # author, documentclass [howto, manual, or own class]). latex_documents = [ ('index', 'blazar-tempest-pluginReleaseNotes.tex', - u'blazar-tempest-plugin Release Notes Documentation', - u'OpenStack Foundation', 'manual'), + 'blazar-tempest-plugin Release Notes Documentation', + 'OpenStack Foundation', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -244,8 +244,8 @@ latex_documents = [ # (source start file, name, description, authors, manual section). man_pages = [ ('index', 'blazar-tempest-pluginrereleasenotes', - u'blazar-tempest-plugin Release Notes Documentation', - [u'OpenStack Foundation'], 1) + 'blazar-tempest-plugin Release Notes Documentation', + ['OpenStack Foundation'], 1) ] # If true, show URL addresses after external links. @@ -259,8 +259,8 @@ man_pages = [ # dir menu entry, description, category) texinfo_documents = [ ('index', 'blazar-tempest-plugin ReleaseNotes', - u'blazar-tempest-plugin Release Notes Documentation', - u'OpenStack Foundation', 'blazar-tempest-pluginReleaseNotes', + 'blazar-tempest-plugin Release Notes Documentation', + 'OpenStack Foundation', 'blazar-tempest-pluginReleaseNotes', 'One line description of project.', 'Miscellaneous'), ]