remove unicode from code

Change-Id: Iea91567941e16007750498114d279dde12571fb8
This commit is contained in:
niuke 2022-07-28 10:08:43 +08:00
parent 0e7ac78c82
commit 204fe38386
2 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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: