Remove unicode literal strings

Python 2 has been deprecated. This patch removes all unicode strings.

Change-Id: Ie323d459923b36de544c15c45d61eb89866fc550
This commit is contained in:
anguoming
2022-06-13 10:20:50 +08:00
parent d013b37066
commit 5fbb22901b
4 changed files with 16 additions and 16 deletions

View File

@@ -45,8 +45,8 @@ source_suffix = '.rst'
master_doc = 'index' master_doc = 'index'
# General information about the project. # General information about the project.
project = u'Placement API Reference' project = 'Placement API Reference'
copyright = u'2010-present, OpenStack Foundation' copyright = '2010-present, OpenStack Foundation'
# openstackdocstheme options # openstackdocstheme options
openstackdocs_repo_name = 'openstack/placement' openstackdocs_repo_name = 'openstack/placement'
@@ -75,8 +75,8 @@ 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', 'Placement.tex', u'OpenStack Placement API Documentation', ('index', 'Placement.tex', 'OpenStack Placement API Documentation',
u'OpenStack Foundation', 'manual'), 'OpenStack Foundation', 'manual'),
] ]
# -- Options for openstackdocstheme ------------------------------------------- # -- Options for openstackdocstheme -------------------------------------------

View File

@@ -74,7 +74,7 @@ source_suffix = '.rst'
master_doc = 'index' master_doc = 'index'
# General information about the project. # General information about the project.
copyright = u'2010-present, OpenStack Foundation' copyright = '2010-present, OpenStack Foundation'
# If true, the current module name will be prepended to all description # If true, the current module name will be prepended to all description
# unit titles (such as .. function::). # unit titles (such as .. function::).
@@ -108,8 +108,8 @@ html_extra_path = ['_extra']
# (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', 'doc-placement.tex', u'Placement Documentation', ('index', 'doc-placement.tex', 'Placement Documentation',
u'OpenStack Foundation', 'manual'), 'OpenStack Foundation', 'manual'),
] ]
latex_domain_indices = False latex_domain_indices = False

View File

@@ -892,7 +892,7 @@ class ResourceProviderListTestCase(tb.PlacementDbBaseTestCase):
expected_rps = ['rp_1', 'rp_2'] expected_rps = ['rp_1', 'rp_2']
self._run_get_all_by_filters(expected_rps) self._run_get_all_by_filters(expected_rps)
filters = {'name': u'rp_1'} filters = {'name': 'rp_1'}
expected_rps = ['rp_1'] expected_rps = ['rp_1']
self._run_get_all_by_filters(expected_rps, filters=filters) self._run_get_all_by_filters(expected_rps, filters=filters)
@@ -939,7 +939,7 @@ class ResourceProviderListTestCase(tb.PlacementDbBaseTestCase):
# We also want to verify that asking for a specific RP can also be # We also want to verify that asking for a specific RP can also be
# checking the resource usage. # checking the resource usage.
filters = {'name': u'rp_1', 'resources': {orc.VCPU: 1}} filters = {'name': 'rp_1', 'resources': {orc.VCPU: 1}}
expected_rps = ['rp_1'] expected_rps = ['rp_1']
self._run_get_all_by_filters(expected_rps, filters=filters) self._run_get_all_by_filters(expected_rps, filters=filters)
@@ -990,13 +990,13 @@ class ResourceProviderListTestCase(tb.PlacementDbBaseTestCase):
# Validate rps in "agg_a" or "agg_b" and named "rp_1" # Validate rps in "agg_a" or "agg_b" and named "rp_1"
filters = {'member_of': [[uuidsentinel.agg_a, uuidsentinel.agg_b]], filters = {'member_of': [[uuidsentinel.agg_a, uuidsentinel.agg_b]],
'name': u'rp_1'} 'name': 'rp_1'}
expected_rps = ['rp_1'] expected_rps = ['rp_1']
self._run_get_all_by_filters(expected_rps, filters=filters) self._run_get_all_by_filters(expected_rps, filters=filters)
# Validate rps in "agg_a" or "agg_b" and named "barnabas" # Validate rps in "agg_a" or "agg_b" and named "barnabas"
filters = {'member_of': [[uuidsentinel.agg_a, uuidsentinel.agg_b]], filters = {'member_of': [[uuidsentinel.agg_a, uuidsentinel.agg_b]],
'name': u'barnabas'} 'name': 'barnabas'}
expected_rps = [] expected_rps = []
self._run_get_all_by_filters(expected_rps, filters=filters) self._run_get_all_by_filters(expected_rps, filters=filters)

View File

@@ -22,9 +22,9 @@
# Keep these empty so that releasesnotes do not display an associated # Keep these empty so that releasesnotes do not display an associated
# version. # version.
# The short X.Y version # The short X.Y version
version = u'' version = ''
# The full version, including alpha/beta/rc tags # The full version, including alpha/beta/rc tags
release = u'' release = ''
# -- General configuration --------------------------------------------------- # -- General configuration ---------------------------------------------------
@@ -45,9 +45,9 @@ extensions = [
master_doc = 'index' master_doc = 'index'
# General information about the project. # General information about the project.
project = u'Placement Release Notes' project = 'Placement Release Notes'
copyright = u'2018, Placement developers' copyright = '2018, Placement developers'
author = u'OpenStack' author = 'OpenStack'
# openstackdocstheme options # openstackdocstheme options
openstackdocs_repo_name = 'openstack/placement' openstackdocs_repo_name = 'openstack/placement'
openstackdocs_auto_name = False openstackdocs_auto_name = False