From 780d88ea1129d04540c4d7f0bc554c3db6c9f402 Mon Sep 17 00:00:00 2001 From: LiZekun <2954674728@qq.com> Date: Wed, 5 Jan 2022 10:20:24 +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: I5c990388bff3f65bfd5e6367a4e17a9292c533ad --- doc/source/conf.py | 14 +++++++------- releasenotes/source/conf.py | 16 ++++++++-------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 1e2765508..83b04649d 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -67,8 +67,8 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = u'Neutron VPNaaS' -copyright = u'2011-present, OpenStack Foundation.' +project = 'Neutron VPNaaS' +copyright = '2011-present, OpenStack Foundation.' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -110,11 +110,11 @@ modindex_common_prefix = ['neutron_vpnaas.'] # -- Options for man page output -------------------------------------------- # Grouping the document tree for man pages. -# List of tuples 'sourcefile', 'target', u'title', u'Authors name', 'manual' +# List of tuples 'sourcefile', 'target', 'title', 'Authors name', 'manual' #man_pages = [ -# ('man/neutron-server', 'neutron-server', u'Neutron Server', -# [u'OpenStack'], 1) +# ('man/neutron-server', 'neutron-server', 'Neutron Server', +# ['OpenStack'], 1) #] @@ -202,8 +202,8 @@ html_static_path = ['_static'] # (source start file, target name, title, author, # documentclass [howto/manual]). latex_documents = [ - ('index', 'doc-neutron-vpnaas.tex', u'Neutron VPN-as-a-Service Documentation', - u'Neutron development team', 'manual'), + ('index', 'doc-neutron-vpnaas.tex', 'Neutron VPN-as-a-Service Documentation', + 'Neutron development team', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py index 562b70f5c..872f3c14c 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'Neutron VPNaaS Release Notes' -copyright = u'2015, Neutron VPNaaS Developers' +project = 'Neutron VPNaaS Release Notes' +copyright = '2015, Neutron VPNaaS Developers' # Release notes are version independent. # The full version, including alpha/beta/rc tags. @@ -202,8 +202,8 @@ latex_elements = { # author, documentclass [howto, manual, or own class]). latex_documents = [ ('index', 'NeutronVPNaaSReleaseNotes.tex', - u'Neutron VPNaaS Release Notes Documentation', - u'Neutron VPNaaS Developers', 'manual'), + 'Neutron VPNaaS Release Notes Documentation', + 'Neutron VPNaaS Developers', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -232,9 +232,9 @@ latex_documents = [ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ('index', 'neutronvpnaasreleasenotes', u'Neutron VPNaaS Release Notes ' + ('index', 'neutronvpnaasreleasenotes', 'Neutron VPNaaS Release Notes ' 'Documentation', - [u'Neutron VPNaaS Developers'], 1) + ['Neutron VPNaaS Developers'], 1) ] # If true, show URL addresses after external links. @@ -247,9 +247,9 @@ man_pages = [ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - ('index', 'NeutronVPNaaSReleaseNotes', u'Neutron VPNaaS Release Notes ' + ('index', 'NeutronVPNaaSReleaseNotes', 'Neutron VPNaaS Release Notes ' 'Documentation', - u'Neutron VPNaaS Developers', 'NeutronVPNaaSReleaseNotes', + 'Neutron VPNaaS Developers', 'NeutronVPNaaSReleaseNotes', 'One line description of project.', 'Miscellaneous'), ]