remove unicode from code

Change-Id: I5407d29ba5dcc8647426091b0df51840c3272ba9
This commit is contained in:
yangyawei 2021-01-03 15:50:30 +08:00
parent 777f45742c
commit 39d51a0a86
5 changed files with 17 additions and 17 deletions

View File

@ -39,7 +39,7 @@ source_suffix = '.rst'
master_doc = 'index'
# General information about the project.
copyright = u'2016-present, OpenStack Foundation'
copyright = '2016-present, OpenStack Foundation'
# openstackdocstheme options
openstackdocs_repo_name = 'openstack/cyborg'
@ -68,6 +68,6 @@ html_theme_options = {
# (source start file, target name, title, author, documentclass
# [howto/manual]).
latex_documents = [
('index', 'Cyborg.tex', u'OpenStack Acceleration API Documentation',
u'OpenStack Foundation', 'manual'),
('index', 'Cyborg.tex', 'OpenStack Acceleration API Documentation',
'OpenStack Foundation', 'manual'),
]

View File

@ -21,7 +21,7 @@ def get_fake_devices_as_dict():
device1 = {
"id": 1,
"vendor": "0xABCD",
"uuid": u"1c6c9033-560d-4a7a-bb8e-94455d1e7825",
"uuid": "1c6c9033-560d-4a7a-bb8e-94455d1e7825",
"hostname": "test-node-1",
"vendor_board_info": "fake_vendor_info",
"model": "miss model info",
@ -31,7 +31,7 @@ def get_fake_devices_as_dict():
device2 = {
"id": 2,
"vendor": "0xDCBA",
"uuid": u"1c6c9033-560d-4a7a-bb8e-94455d1e7826",
"uuid": "1c6c9033-560d-4a7a-bb8e-94455d1e7826",
"hostname": "test-node-2",
"vendor_board_info": "fake_vendor_info",
"model": "miss model info",

View File

@ -35,8 +35,8 @@ def _get_device_profiles_as_dict():
tzinfo=datetime.timezone.utc)
dp1 = {
"id": 1,
"uuid": u"a95e10ae-b3e3-4eab-a513-1afae6f17c51",
"name": u'afaas_example_1',
"uuid": "a95e10ae-b3e3-4eab-a513-1afae6f17c51",
"name": 'afaas_example_1',
"description": "fake-afaas_example_1-desc",
"created_at": date1,
"updated_at": None,
@ -53,7 +53,7 @@ def _get_device_profiles_as_dict():
dp2 = {
"id": 2,
"uuid": u"199c46b7-63a7-431b-aa40-35da4b9420b1",
"name": u'daas_example_2',
"name": 'daas_example_2',
"created_at": date2,
"updated_at": None,
"description": "fake-daas_example_2-desc",

View File

@ -42,7 +42,7 @@ source_suffix = '.rst'
master_doc = 'index'
# General information about the project.
copyright = u'2013, OpenStack Foundation'
copyright = '2013, OpenStack Foundation'
# openstackdocstheme options
openstackdocs_repo_name = 'openstack/cyborg'
@ -114,8 +114,8 @@ latex_use_xindy = False
latex_documents = [
('index',
'doc-cyborg.tex',
u'Cyborg Documentation',
u'OpenStack Foundation', 'manual'),
'Cyborg Documentation',
'OpenStack Foundation', 'manual'),
]
# Example configuration for intersphinx: refer to the Python standard library.

View File

@ -28,8 +28,8 @@ source_suffix = '.rst'
master_doc = 'index'
# General information about the project.
copyright = u'2018, Cyborg developers'
author = u'cyborg developers'
copyright = '2018, Cyborg developers'
author = 'cyborg developers'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
@ -98,8 +98,8 @@ htmlhelp_basename = 'CyborgReleaseNotesdoc'
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'CyborgReleaseNotes.tex',
u'Cyborg Release Notes Documentation',
u'Cyborg developers', 'manual'),
'Cyborg Release Notes Documentation',
'Cyborg developers', 'manual'),
]
@ -108,7 +108,7 @@ latex_documents = [
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(master_doc, 'CyborgReleaseNotes', u'Cyborg Release Notes Documentation',
(master_doc, 'CyborgReleaseNotes', 'Cyborg Release Notes Documentation',
[author], 1)
]
@ -119,7 +119,7 @@ man_pages = [
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'CyborgReleaseNotes', u'Cyborg Release Notes Documentation',
(master_doc, 'CyborgReleaseNotes', 'Cyborg Release Notes Documentation',
author, 'CyborgReleaseNotes', 'One line description of project.',
'Miscellaneous'),
]