From 204fe38386a884510cdb4068ab3cb1f9bcca989b Mon Sep 17 00:00:00 2001 From: niuke Date: Thu, 28 Jul 2022 10:08:43 +0800 Subject: [PATCH] remove unicode from code Change-Id: Iea91567941e16007750498114d279dde12571fb8 --- doc/source/conf.py | 12 ++++++------ os_testr/tests/test_subunit2html.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 474a060..420bd7a 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -45,8 +45,8 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = u'os-testr' -copyright = u'2015, Matthew Treinish' +project = 'os-testr' +copyright = '2015, Matthew Treinish' # If true, '()' will be appended to :func: etc. cross-reference text. add_function_parentheses = True @@ -79,8 +79,8 @@ htmlhelp_basename = '%sdoc' % project latex_documents = [ ('index', '%s.tex' % project, - u'%s Documentation' % project, - u'Matthew Treinish', 'manual'), + '%s Documentation' % project, + 'Matthew Treinish', 'manual'), ] man_pages = [('ostestr', 'ostestr', 'tooling to run OpenStack tests', @@ -99,8 +99,8 @@ man_pages = [('ostestr', 'ostestr', 'tooling to run OpenStack tests', # (source start file, target name, title, author, documentclass # [howto/manual]). latex_documents = [ - ('index', 'doc-os-testr.tex', u'Os-testr', - u'OpenStack Foundation', 'manual'), + ('index', 'doc-os-testr.tex', 'Os-testr', + 'OpenStack Foundation', 'manual'), ] # Disable usage of xindy https://bugzilla.redhat.com/show_bug.cgi?id=1643664 diff --git a/os_testr/tests/test_subunit2html.py b/os_testr/tests/test_subunit2html.py index 8bd6b8f..893cadc 100644 --- a/os_testr/tests/test_subunit2html.py +++ b/os_testr/tests/test_subunit2html.py @@ -81,7 +81,7 @@ class TestSubunit2html(base.TestCase): def test_generate_report_with_no_ascii_characters(self, test_cls): # The test examines a case where an error containing no ascii # characters is received. - test = test_cls(u'example.path.to.test1.method') + test = test_cls('example.path.to.test1.method') try: raise Exception('\xe2\x82\xa5') except Exception: