remove unicode from code

Change-Id: Ie452dbdd42ec7ef34993572ac0b456562aabab79
This commit is contained in:
liyou01 2021-01-07 14:34:47 +08:00
parent c87d9cb29d
commit 9ce1a11451
4 changed files with 27 additions and 27 deletions

View File

@ -66,8 +66,8 @@ source_suffix = '.rst'
master_doc = 'index' master_doc = 'index'
# General information about the project. # General information about the project.
project = u'Backup and Disaster Recovery Service API Reference' project = 'Backup and Disaster Recovery Service API Reference'
copyright = u'2010-present, OpenStack Foundation' copyright = '2010-present, OpenStack Foundation'
# 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
@ -212,9 +212,9 @@ htmlhelp_basename = 'freezerapidoc'
# (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', 'Freezerapi.tex', u'OpenStack Backup and Disaster Recovery ' ('index', 'Freezerapi.tex', 'OpenStack Backup and Disaster Recovery '
u'Service API Documentation', 'Service API Documentation',
u'OpenStack Foundation', 'manual'), 'OpenStack Foundation', '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

View File

@ -46,8 +46,8 @@ master_doc = 'index'
# General information about the project. # General information about the project.
openstackdocs_auto_name = False openstackdocs_auto_name = False
project = u'freezer-api' project = 'freezer-api'
copyright = u'2016, OpenStack' copyright = '2016, OpenStack'
# 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
@ -191,8 +191,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', 'freezer-api.tex', u'freezer-api Documentation', ('index', 'freezer-api.tex', 'freezer-api Documentation',
u'OpenStack', 'manual'), 'OpenStack', '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
@ -221,8 +221,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', 'freezer-api', u'freezer-api Documentation', ('index', 'freezer-api', 'freezer-api Documentation',
[u'OpenStack'], 1) ['OpenStack'], 1)
] ]
# If true, show URL addresses after external links. # If true, show URL addresses after external links.
@ -235,8 +235,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', 'freezer-api', u'freezer-api Documentation', ('index', 'freezer-api', 'freezer-api Documentation',
u'OpenStack', 'freezer-api', 'One line description of project.', 'OpenStack', 'freezer-api', 'One line description of project.',
'Miscellaneous'), 'Miscellaneous'),
] ]

View File

@ -383,12 +383,12 @@ def get_client(user_id, project_id=None, client_id=None, offset=0,
for client in result: for client in result:
clientmap = {} clientmap = {}
clientmap[u'project_id'] = client.project_id clientmap['project_id'] = client.project_id
clientmap[u'user_id'] = client.user_id clientmap['user_id'] = client.user_id
clientmap[u'client'] = {u'uuid': client.uuid, clientmap['client'] = {'uuid': client.uuid,
u'hostname': client.hostname, 'hostname': client.hostname,
u'client_id': client.client_id, 'client_id': client.client_id,
u'description': client.description} 'description': client.description}
clients.append(clientmap) clients.append(clientmap)
# If search opt is wrong, filter will not work, # If search opt is wrong, filter will not work,

View File

@ -49,8 +49,8 @@ source_suffix = '.rst'
master_doc = 'index' master_doc = 'index'
# General information about the project. # General information about the project.
project = u'Freezer API Release Notes' project = 'Freezer API Release Notes'
copyright = u'2016, Freezer developers' copyright = '2016, Freezer developers'
# Release notes are version independent. # Release notes are version independent.
# The short X.Y version. # The short X.Y version.
@ -199,8 +199,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', 'FreezerAPI.tex', u'Freezer API Release Notes Documentation', ('index', 'FreezerAPI.tex', 'Freezer API Release Notes Documentation',
u'Freezer developers', 'manual'), 'Freezer 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
@ -230,8 +230,8 @@ latex_documents = [
# (source start file, name, description, authors, manual section). # (source start file, name, description, authors, manual section).
man_pages = [ man_pages = [
('index', 'freezer-api', ('index', 'freezer-api',
u'Freezer API Release Notes Documentation', 'Freezer API Release Notes Documentation',
[u'Freezer developers'], 1) ['Freezer developers'], 1)
] ]
# If true, show URL addresses after external links. # If true, show URL addresses after external links.
@ -245,8 +245,8 @@ man_pages = [
# dir menu entry, description, category) # dir menu entry, description, category)
texinfo_documents = [ texinfo_documents = [
('index', 'Freezer API', ('index', 'Freezer API',
u'Freezer API Release Notes Documentation', 'Freezer API Release Notes Documentation',
u'Freezer developers', 'Freezer', 'Freezer developers', 'Freezer',
'One line description of project.', 'Miscellaneous'), 'One line description of project.', 'Miscellaneous'),
] ]