From 5813b3271c603f55e4f67b7bc3bd7b6993058f1c Mon Sep 17 00:00:00 2001 From: xuanyandong Date: Sun, 3 Jan 2021 15:42:09 +0800 Subject: [PATCH] remove unicode in code Change-Id: Ie293ef73016e4e0b89960fc9ac88019f922f7c2d --- doc/source/conf.py | 18 +++++++++--------- doc/source/usage.rst | 2 +- releasenotes/source/conf.py | 16 ++++++++-------- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 664b613..1717c61 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -51,18 +51,18 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = u'etcd3-gateway' -copyright = u'2017, Davanum Srinivas' -author = u'Davanum Srinivas' +project = 'etcd3-gateway' +copyright = '2017, Davanum Srinivas' +author = 'Davanum Srinivas' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. -version = u'' +version = '' # The full version, including alpha/beta/rc tags. -release = u'' +release = '' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -132,8 +132,8 @@ latex_elements = { # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - (master_doc, 'etcd3-gateway.tex', u'etcd3-gateway Documentation', - u'Davanum Srinivas', 'manual'), + (master_doc, 'etcd3-gateway.tex', 'etcd3-gateway Documentation', + 'Davanum Srinivas', 'manual'), ] @@ -142,7 +142,7 @@ latex_documents = [ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - (master_doc, 'etcd3-gateway', u'etcd3-gateway Documentation', + (master_doc, 'etcd3-gateway', 'etcd3-gateway Documentation', [author], 1) ] @@ -153,7 +153,7 @@ man_pages = [ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - (master_doc, 'etcd3-gateway', u'etcd3-gateway Documentation', + (master_doc, 'etcd3-gateway', 'etcd3-gateway Documentation', author, 'etcd3-gateway', 'One line description of project.', 'Miscellaneous'), ] diff --git a/doc/source/usage.rst b/doc/source/usage.rst index a23c9ff..4486e94 100644 --- a/doc/source/usage.rst +++ b/doc/source/usage.rst @@ -37,4 +37,4 @@ Basic usage example:: for event in watcher: # blocks until event comes, cancel via watch_cancel() print(event) - # modify event: {u'kv': {u'mod_revision': u'8', u'version': u'3', u'value': 'NEW_VAL', u'create_revision': u'2', u'key': 'KEY', u'lease': u'7587847878767953426'}} + # modify event: {'kv': {'mod_revision': '8', 'version': '3', 'value': 'NEW_VAL', 'create_revision': '2', 'key': 'KEY', 'lease': '7587847878767953426'}} diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py index fce3948..98ed70b 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'etcd3gw Release Notes' -copyright = u'2016, OpenStack Foundation' +project = 'etcd3gw Release Notes' +copyright = '2016, OpenStack Foundation' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -209,8 +209,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 @@ -239,8 +239,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. @@ -253,8 +253,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'), ]