summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxuanyandong <xuanyandong@inspur.com>2021-01-03 16:18:03 +0800
committerxuanyandong <xuanyandong@inspur.com>2021-01-03 16:18:03 +0800
commit2eb27aa5ae6b24dd98872328d2cae0da7d2cbbfe (patch)
tree4504c59e29d9227ac64e8a4212962fe00846b321
parent672919216bdf4209a2976e86f6e58850ffc9478f (diff)
downloadoslo-middleware-2eb27aa5ae6b24dd98872328d2cae0da7d2cbbfe.tar.gz
remove unicode from code
Change-Id: I5efbe90ec103fbf25412b2dc2cc6d85ccbb90f83
-rw-r--r--doc/source/conf.py2
-rw-r--r--oslo_middleware/tests/test_catch_errors.py2
-rw-r--r--releasenotes/source/conf.py10
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'),