From c55143bc210616a522cfed3cd594e421c31980f7 Mon Sep 17 00:00:00 2001 From: wangjiaqi07 Date: Fri, 19 Aug 2022 14:17:03 +0800 Subject: [PATCH] remove unicode from code Change-Id: I747445d482a2fb40c2f39139c5fd2a0cb26c27bc --- doc/source/conf.py | 20 ++++++++++---------- releasenotes/source/conf.py | 14 +++++++------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 260925e4b..4515cbb62 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -56,8 +56,8 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = u'Watcher' -copyright = u'OpenStack Foundation' +project = 'Watcher' +copyright = 'OpenStack Foundation' # A list of ignored prefixes for module index sorting. modindex_common_prefix = ['watcher.'] @@ -91,14 +91,14 @@ pygments_style = 'native' # List of tuples 'sourcefile', 'target', u'title', u'Authors name', 'manual' man_pages = [ - ('man/watcher-api', 'watcher-api', u'Watcher API Server', - [u'OpenStack'], 1), - ('man/watcher-applier', 'watcher-applier', u'Watcher Applier', - [u'OpenStack'], 1), + ('man/watcher-api', 'watcher-api', 'Watcher API Server', + ['OpenStack'], 1), + ('man/watcher-applier', 'watcher-applier', 'Watcher Applier', + ['OpenStack'], 1), ('man/watcher-db-manage', 'watcher-db-manage', - u'Watcher Db Management Utility', [u'OpenStack'], 1), + 'Watcher Db Management Utility', ['OpenStack'], 1), ('man/watcher-decision-engine', 'watcher-decision-engine', - u'Watcher Decision Engine', [u'OpenStack'], 1), + 'Watcher Decision Engine', ['OpenStack'], 1), ] # -- Options for HTML output -------------------------------------------------- @@ -128,8 +128,8 @@ openstackdocs_bug_tag = '' latex_documents = [ ('index', 'doc-watcher.tex', - u'Watcher Documentation', - u'OpenStack Foundation', 'manual'), + 'Watcher Documentation', + 'OpenStack Foundation', 'manual'), ] # If false, no module index is generated. diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py index 105b15d47..dec102502 100644 --- a/releasenotes/source/conf.py +++ b/releasenotes/source/conf.py @@ -53,7 +53,7 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -copyright = u'2016, Watcher developers' +copyright = '2016, Watcher developers' # Release notes are version independent # The short X.Y version. @@ -196,8 +196,8 @@ latex_elements = { # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]) latex_documents = [ - ('index', 'watcher.tex', u'Watcher Documentation', - u'Watcher developers', 'manual'), + ('index', 'watcher.tex', 'Watcher Documentation', + 'Watcher 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', 'watcher', u'Watcher Documentation', - [u'Watcher developers'], 1) + ('index', 'watcher', 'Watcher Documentation', + ['Watcher 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', 'watcher', u'Watcher Documentation', - u'Watcher developers', 'watcher', 'One line description of project.', + ('index', 'watcher', 'Watcher Documentation', + 'Watcher developers', 'watcher', 'One line description of project.', 'Miscellaneous'), ]