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'
# General information about the project.
project = u'Kolla-Ansible'
bug_tag = u'deploy-guide'
copyright = u'2016, OpenStack contributors'
project = 'Kolla-Ansible'
bug_tag = 'deploy-guide'
copyright = '2016, OpenStack contributors'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
@ -224,8 +224,8 @@ latex_elements = {
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
('index', 'DeployGuide.tex', u'Deploy Guide',
u'OpenStack contributors', 'manual'),
('index', 'DeployGuide.tex', 'Deploy Guide',
'OpenStack contributors', 'manual'),
]
# 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
# (source start file, name, description, authors, manual section).
man_pages = [
('index', 'deployguide', u'Deploy Guide',
[u'OpenStack contributors'], 1)
('index', 'deployguide', 'Deploy Guide',
['OpenStack contributors'], 1)
]
# If true, show URL addresses after external links.
@ -268,8 +268,8 @@ man_pages = [
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
('index', 'DeployGuide', u'Deploy Guide',
u'OpenStack contributors', 'DeployGuide',
('index', 'DeployGuide', 'Deploy Guide',
'OpenStack contributors', 'DeployGuide',
'This guide shows OpenStack end users how to deploy '
'an OpenStack cloud.', 'Miscellaneous'),
]
@ -292,8 +292,8 @@ locale_dirs = ['locale/']
# -- Options for PDF output --------------------------------------------------
pdf_documents = [
('index', u'DeployGuide', u'Deploy Guide',
u'OpenStack contributors')
('index', 'DeployGuide', 'Deploy Guide',
'OpenStack contributors')
]
# -- Options for openstackdocstheme -------------------------------------------

View File

@ -37,8 +37,8 @@ source_suffix = '.rst'
master_doc = 'index'
# General information about the project.
project = u'kolla-ansible'
copyright = u'2013, OpenStack Foundation'
project = 'kolla-ansible'
copyright = '2013, OpenStack Foundation'
# If true, '()' will be appended to :func: etc. cross-reference text.
add_function_parentheses = True
@ -75,8 +75,8 @@ htmlhelp_basename = '%sdoc' % project
latex_documents = [
('index',
'doc-%s.tex' % project,
u'%s Documentation' % project,
u'OpenStack Foundation', 'manual'),
'%s Documentation' % project,
'OpenStack Foundation', 'manual'),
]
# 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'
# General information about the project.
project = u'Kolla Ansible Release Notes'
copyright = u'2015-2021, Kolla Ansible developers'
project = 'Kolla Ansible Release Notes'
copyright = '2015-2021, Kolla Ansible developers'
# Release notes do not need a version number in the title, they
# cover multiple releases.
@ -188,8 +188,8 @@ htmlhelp_basename = 'KollaAnsibleReleaseNotesdoc'
# author, documentclass [howto, manual, or own class]).
latex_documents = [
('index', 'KollaAnsibleReleaseNotes.tex',
u'Kolla Ansible Release Notes Documentation',
u'Kolla Ansible developers', 'manual'),
'Kolla Ansible Release Notes Documentation',
'Kolla Ansible developers', 'manual'),
]
# 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)
texinfo_documents = [
('index', 'KollaAnsibleReleaseNotes',
u'Kolla Ansible Release Notes Documentation',
u'Kolla Ansible developers', 'KollaAnsibleReleaseNotes',
'Kolla Ansible Release Notes Documentation',
'Kolla Ansible developers', 'KollaAnsibleReleaseNotes',
'Kolla-Ansible deploys OpenStack services and infrastructure components '
'in Docker containers.', 'Miscellaneous'),
]

View File

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