Merge "remove unicode from code"

This commit is contained in:
Zuul 2021-01-05 08:15:50 +00:00 committed by Gerrit Code Review
commit eb0e6c2ceb
5 changed files with 17 additions and 17 deletions

View File

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

View File

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

View File

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

View File

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

View File

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