remove unicode from code

Change-Id: Id9110a1f536377cea0386dda6814035d73de13b1
Implements: blueprint remove-unicode
This commit is contained in:
likui 2021-01-03 12:48:22 +08:00
parent f1178c24e1
commit 341a6ed08e
4 changed files with 24 additions and 24 deletions

View File

@ -54,9 +54,9 @@ source_suffix = '.rst'
master_doc = 'index' master_doc = 'index'
# General information about the project. # General information about the project.
project = u'Kolla-Ansible' project = 'Kolla-Ansible'
bug_tag = u'deploy-guide' bug_tag = 'deploy-guide'
copyright = u'2016, OpenStack contributors' copyright = '2016, OpenStack contributors'
# 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
@ -224,8 +224,8 @@ latex_elements = {
# (source start file, target name, title, # (source start file, target name, title,
# author, documentclass [howto, manual, or own class]). # author, documentclass [howto, manual, or own class]).
latex_documents = [ latex_documents = [
('index', 'DeployGuide.tex', u'Deploy Guide', ('index', 'DeployGuide.tex', 'Deploy Guide',
u'OpenStack contributors', 'manual'), 'OpenStack contributors', 'manual'),
] ]
# The name of an image file (relative to this directory) to place at the top of # The name of an image file (relative to this directory) to place at the top of
@ -254,8 +254,8 @@ 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 = [
('index', 'deployguide', u'Deploy Guide', ('index', 'deployguide', 'Deploy Guide',
[u'OpenStack contributors'], 1) ['OpenStack contributors'], 1)
] ]
# If true, show URL addresses after external links. # If true, show URL addresses after external links.
@ -268,8 +268,8 @@ 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 = [
('index', 'DeployGuide', u'Deploy Guide', ('index', 'DeployGuide', 'Deploy Guide',
u'OpenStack contributors', 'DeployGuide', 'OpenStack contributors', 'DeployGuide',
'This guide shows OpenStack end users how to deploy ' 'This guide shows OpenStack end users how to deploy '
'an OpenStack cloud.', 'Miscellaneous'), 'an OpenStack cloud.', 'Miscellaneous'),
] ]
@ -292,8 +292,8 @@ locale_dirs = ['locale/']
# -- Options for PDF output -------------------------------------------------- # -- Options for PDF output --------------------------------------------------
pdf_documents = [ pdf_documents = [
('index', u'DeployGuide', u'Deploy Guide', ('index', 'DeployGuide', 'Deploy Guide',
u'OpenStack contributors') 'OpenStack contributors')
] ]
# -- Options for openstackdocstheme ------------------------------------------- # -- Options for openstackdocstheme -------------------------------------------

View File

@ -37,8 +37,8 @@ source_suffix = '.rst'
master_doc = 'index' master_doc = 'index'
# General information about the project. # General information about the project.
project = u'kolla-ansible' project = 'kolla-ansible'
copyright = u'2013, OpenStack Foundation' copyright = '2013, OpenStack Foundation'
# If true, '()' will be appended to :func: etc. cross-reference text. # If true, '()' will be appended to :func: etc. cross-reference text.
add_function_parentheses = True add_function_parentheses = True
@ -75,8 +75,8 @@ htmlhelp_basename = '%sdoc' % project
latex_documents = [ latex_documents = [
('index', ('index',
'doc-%s.tex' % project, 'doc-%s.tex' % project,
u'%s Documentation' % project, '%s Documentation' % project,
u'OpenStack Foundation', 'manual'), 'OpenStack Foundation', 'manual'),
] ]
# Disable usage of xindy https://bugzilla.redhat.com/show_bug.cgi?id=1643664 # Disable usage of xindy https://bugzilla.redhat.com/show_bug.cgi?id=1643664

View File

@ -51,8 +51,8 @@ source_suffix = '.rst'
master_doc = 'index' master_doc = 'index'
# General information about the project. # General information about the project.
project = u'Kolla Ansible Release Notes' project = 'Kolla Ansible Release Notes'
copyright = u'2015-2021, Kolla Ansible developers' copyright = '2015-2021, Kolla Ansible developers'
# Release notes do not need a version number in the title, they # Release notes do not need a version number in the title, they
# cover multiple releases. # cover multiple releases.
@ -188,8 +188,8 @@ htmlhelp_basename = 'KollaAnsibleReleaseNotesdoc'
# author, documentclass [howto, manual, or own class]). # author, documentclass [howto, manual, or own class]).
latex_documents = [ latex_documents = [
('index', 'KollaAnsibleReleaseNotes.tex', ('index', 'KollaAnsibleReleaseNotes.tex',
u'Kolla Ansible Release Notes Documentation', 'Kolla Ansible Release Notes Documentation',
u'Kolla Ansible developers', 'manual'), 'Kolla Ansible developers', 'manual'),
] ]
# The name of an image file (relative to this directory) to place at the top of # The name of an image file (relative to this directory) to place at the top of
@ -220,8 +220,8 @@ latex_documents = [
# dir menu entry, description, category) # dir menu entry, description, category)
texinfo_documents = [ texinfo_documents = [
('index', 'KollaAnsibleReleaseNotes', ('index', 'KollaAnsibleReleaseNotes',
u'Kolla Ansible Release Notes Documentation', 'Kolla Ansible Release Notes Documentation',
u'Kolla Ansible developers', 'KollaAnsibleReleaseNotes', 'Kolla Ansible developers', 'KollaAnsibleReleaseNotes',
'Kolla-Ansible deploys OpenStack services and infrastructure components ' 'Kolla-Ansible deploys OpenStack services and infrastructure components '
'in Docker containers.', 'Miscellaneous'), 'in Docker containers.', 'Miscellaneous'),
] ]

View File

@ -558,8 +558,8 @@ class TestContainer(base.BaseTestCase):
State = {'Dead': False, State = {'Dead': False,
'ExitCode': 0, 'ExitCode': 0,
'Pid': 12475, 'Pid': 12475,
'StartedAt': u'2016-06-07T11:22:37.66876269Z', 'StartedAt': '2016-06-07T11:22:37.66876269Z',
'Status': u'running'} 'Status': 'running'}
self.fake_data['container_inspect'].update({'State': State}) self.fake_data['container_inspect'].update({'State': State})
self.dw = get_DockerWorker({'name': 'my_container', self.dw = get_DockerWorker({'name': 'my_container',
'action': 'get_container_state'}) 'action': 'get_container_state'})
@ -865,7 +865,7 @@ class TestVolume(base.BaseTestCase):
self.fake_data = copy.deepcopy(FAKE_DATA) self.fake_data = copy.deepcopy(FAKE_DATA)
self.volumes = { self.volumes = {
'Volumes': 'Volumes':
[{'Driver': u'local', [{'Driver': 'local',
'Labels': None, 'Labels': None,
'Mountpoint': '/var/lib/docker/volumes/nova_compute/_data', 'Mountpoint': '/var/lib/docker/volumes/nova_compute/_data',
'Name': 'nova_compute'}, 'Name': 'nova_compute'},