From 2eb27aa5ae6b24dd98872328d2cae0da7d2cbbfe Mon Sep 17 00:00:00 2001 From: xuanyandong Date: Sun, 3 Jan 2021 16:18:03 +0800 Subject: remove unicode from code Change-Id: I5efbe90ec103fbf25412b2dc2cc6d85ccbb90f83 --- doc/source/conf.py | 2 +- oslo_middleware/tests/test_catch_errors.py | 2 +- releasenotes/source/conf.py | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index d905196..78393ca 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -45,7 +45,7 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -copyright = u'2014, OpenStack Foundation' +copyright = '2014, OpenStack Foundation' # If true, '()' will be appended to :func: etc. cross-reference text. add_function_parentheses = True diff --git a/oslo_middleware/tests/test_catch_errors.py b/oslo_middleware/tests/test_catch_errors.py index fa6d518..5719847 100644 --- a/oslo_middleware/tests/test_catch_errors.py +++ b/oslo_middleware/tests/test_catch_errors.py @@ -60,7 +60,7 @@ class CatchErrorsTest(test_base.BaseTestCase): app = catch_errors.CatchErrors(application) req = webob.Request.blank('/test', - text=u'test data', + text='test data', method='POST', headers={'X-Auth-Token': 'secret1', 'X-Service-Token': 'secret2', diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py index b2b8d43..2d5b578 100644 --- a/releasenotes/source/conf.py +++ b/releasenotes/source/conf.py @@ -56,7 +56,7 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -copyright = u'2016, oslo.middleware Developers' +copyright = '2016, oslo.middleware Developers' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -181,8 +181,8 @@ html_static_path = ['_static'] # (source start file, name, description, authors, manual section). man_pages = [ ('index', 'oslo.middlewareReleaseNotes', - u'oslo.middleware Release Notes Documentation', - [u'oslo.middleware Developers'], 1) + 'oslo.middleware Release Notes Documentation', + ['oslo.middleware Developers'], 1) ] # If true, show URL addresses after external links. @@ -196,8 +196,8 @@ man_pages = [ # dir menu entry, description, category) texinfo_documents = [ ('index', 'oslo.middlewareReleaseNotes', - u'oslo.middleware Release Notes Documentation', - u'oslo.middleware Developers', 'oslo.middlewareReleaseNotes', + 'oslo.middleware Release Notes Documentation', + 'oslo.middleware Developers', 'oslo.middlewareReleaseNotes', 'The library includes components that can be injected into wsgi pipelines' ' to intercept request/response flows.', 'Miscellaneous'), -- cgit v1.2.1