From 179019f82e9f75ec11d88f3a7e504091d3cb4be4 Mon Sep 17 00:00:00 2001 From: shanyunfan33 Date: Wed, 23 Mar 2022 09:21:04 +0800 Subject: [PATCH] remove unicode from code remove unicode from code Change-Id: I3e32aea0439f68e48c6ff178c50e8a91ac5415e4 --- doc/source/conf.py | 14 +++++++------- .../services/logapi/common/log_db_api.py | 8 ++++---- releasenotes/source/conf.py | 16 ++++++++-------- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 2f8d1f6ff..dacf295e4 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -93,8 +93,8 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = u'Neutron FWaaS' -copyright = u'2011-present, OpenStack Foundation.' +project = 'Neutron FWaaS' +copyright = '2011-present, 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 @@ -146,11 +146,11 @@ modindex_common_prefix = ['neutron_fwaas.'] # -- 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) #] @@ -247,8 +247,8 @@ html_last_updated_fmt = '%Y-%m-%d %H:%M' # documentclass [howto/manual]). latex_documents = [ ('index', 'doc-neutron-fwaas.tex', - u'Neutron Firewall-as-s-Service Documentation', - u'Neutron development team', 'manual'), + 'Neutron Firewall-as-s-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/neutron_fwaas/services/logapi/common/log_db_api.py b/neutron_fwaas/services/logapi/common/log_db_api.py index d188413c3..61f35b1f3 100644 --- a/neutron_fwaas/services/logapi/common/log_db_api.py +++ b/neutron_fwaas/services/logapi/common/log_db_api.py @@ -150,9 +150,9 @@ def get_fwg_log_info_for_port(context, port_ids): [ { - 'event': u'ALL', + 'event': 'ALL', 'id': '733e0499-e69e-4106-a84a-635fbc5fbbc0', - 'project_id': u'46f70361-ba71-4bd0-9769-3573fd227c4b', + 'project_id': '46f70361-ba71-4bd0-9769-3573fd227c4b', 'ports_log': [ port1_id, @@ -194,9 +194,9 @@ def get_fwg_log_info_for_log_resources(context, log_resources): [ { - 'event': u'ALL', + 'event': 'ALL', 'id': '733e0499-e69e-4106-a84a-635fbc5fbbc0', - 'project_id': u'46f70361-ba71-4bd0-9769-3573fd227c4b', + 'project_id': '46f70361-ba71-4bd0-9769-3573fd227c4b', 'ports_log': [ port1_id, diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py index 58b1e388c..e9192733c 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 FWaaS Release Notes' -copyright = u'2015, Neutron FWaaS Developers' +project = 'Neutron FWaaS Release Notes' +copyright = '2015, Neutron FWaaS Developers' # Release notes are version independent. # The full version, including alpha/beta/rc tags. @@ -207,8 +207,8 @@ latex_elements = { # author, documentclass [howto, manual, or own class]). latex_documents = [ ('index', 'NeutronFWaaSReleaseNotes.tex', - u'Neutron FWaaS Release Notes Documentation', - u'Neutron FWaaS Developers', 'manual'), + 'Neutron FWaaS Release Notes Documentation', + 'Neutron FWaaS Developers', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -237,8 +237,8 @@ latex_documents = [ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ('index', 'neutronfwaasreleasenotes', u'Neutron FWaaS Release Notes ' - 'Documentation', [u'Neutron FWaaS Developers'], 1) + ('index', 'neutronfwaasreleasenotes', 'Neutron FWaaS Release Notes ' + 'Documentation', ['Neutron FWaaS Developers'], 1) ] # If true, show URL addresses after external links. @@ -251,9 +251,9 @@ man_pages = [ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - ('index', 'NeutronFWaaSReleaseNotes', u'Neutron FWaaS Release Notes ' + ('index', 'NeutronFWaaSReleaseNotes', 'Neutron FWaaS Release Notes ' 'Documentation', - u'Neutron FWaaS Developers', 'NeutronFWaaSReleaseNotes', + 'Neutron FWaaS Developers', 'NeutronFWaaSReleaseNotes', 'One line description of project.', 'Miscellaneous'), ]