Dropping explicit unicode literal
In python 3, all strings are considered as unicode string. This patch drops the explicit unicode literal (u'...') or (u"..") appearances from the unicode strings. Change-Id: I9902966892a1dc4f85d449dfe580fb128647487b
This commit is contained in:
parent
7e4219622b
commit
d9213138b1
|
@ -28,9 +28,9 @@ REQUEST_ID = 'req-test-request-id'
|
||||||
def _stub_volume(*args, **kwargs):
|
def _stub_volume(*args, **kwargs):
|
||||||
volume = {
|
volume = {
|
||||||
"migration_status": None,
|
"migration_status": None,
|
||||||
"attachments": [{u'server_id': u'1234',
|
"attachments": [{'server_id': '1234',
|
||||||
u'id': u'3f88836f-adde-4296-9f6b-2c59a0bcda9a',
|
'id': '3f88836f-adde-4296-9f6b-2c59a0bcda9a',
|
||||||
u'attachment_id': u'5678'}],
|
'attachment_id': '5678'}],
|
||||||
"links": [
|
"links": [
|
||||||
{
|
{
|
||||||
"href": "http://localhost/v2/fake/volumes/1234",
|
"href": "http://localhost/v2/fake/volumes/1234",
|
||||||
|
@ -741,7 +741,7 @@ class FakeHTTPClient(base_client.HTTPClient):
|
||||||
return (200, {}, {'volume_type': {'id': 1,
|
return (200, {}, {'volume_type': {'id': 1,
|
||||||
'name': 'test-type-1',
|
'name': 'test-type-1',
|
||||||
'description': 'test_type-1-desc',
|
'description': 'test_type-1-desc',
|
||||||
'extra_specs': {u'key': u'value'}}})
|
'extra_specs': {'key': 'value'}}})
|
||||||
|
|
||||||
def get_types_2(self, **kw):
|
def get_types_2(self, **kw):
|
||||||
return (200, {}, {'volume_type': {'id': 2,
|
return (200, {}, {'volume_type': {'id': 2,
|
||||||
|
@ -1317,9 +1317,9 @@ class FakeHTTPClient(base_client.HTTPClient):
|
||||||
'storage_protocol': 'iSCSI',
|
'storage_protocol': 'iSCSI',
|
||||||
'properties': {
|
'properties': {
|
||||||
'compression': {
|
'compression': {
|
||||||
u'title': u'Compression',
|
'title': 'Compression',
|
||||||
u'description': u'Enables compression.',
|
'description': 'Enables compression.',
|
||||||
u'type': u'boolean'},
|
'type': 'boolean'},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
@ -81,8 +81,8 @@ html_theme = 'openstackdocs'
|
||||||
# -- Options for manual page output ------------------------------------------
|
# -- Options for manual page output ------------------------------------------
|
||||||
|
|
||||||
man_pages = [
|
man_pages = [
|
||||||
('cli/details', 'cinder', u'Client for OpenStack Block Storage API',
|
('cli/details', 'cinder', 'Client for OpenStack Block Storage API',
|
||||||
[u'OpenStack Contributors'], 1),
|
['OpenStack Contributors'], 1),
|
||||||
]
|
]
|
||||||
|
|
||||||
# -- Options for openstackdocstheme -------------------------------------------
|
# -- Options for openstackdocstheme -------------------------------------------
|
||||||
|
@ -104,8 +104,8 @@ openstackdocs_pdf_link = True
|
||||||
# (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-python-cinderclient.tex', u'Cinder Client Documentation',
|
('index', 'doc-python-cinderclient.tex', 'Cinder Client Documentation',
|
||||||
u'Cinder Contributors', 'manual'),
|
'Cinder 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
|
||||||
|
|
|
@ -55,9 +55,9 @@ source_suffix = '.rst'
|
||||||
master_doc = 'index'
|
master_doc = 'index'
|
||||||
|
|
||||||
# General information about the project.
|
# General information about the project.
|
||||||
project = u'Cinder Client Release Notes'
|
project = 'Cinder Client Release Notes'
|
||||||
openstackdocs_auto_name = False
|
openstackdocs_auto_name = False
|
||||||
copyright = u'2015, Cinder Developers'
|
copyright = '2015, Cinder Developers'
|
||||||
|
|
||||||
# Release notes are version independent, no need to set version and release
|
# Release notes are version independent, no need to set version and release
|
||||||
release = ''
|
release = ''
|
||||||
|
@ -201,8 +201,8 @@ latex_elements = {
|
||||||
# author, documentclass [howto, manual, or own class]).
|
# author, documentclass [howto, manual, or own class]).
|
||||||
latex_documents = [
|
latex_documents = [
|
||||||
('index', 'CinderClientReleaseNotes.tex',
|
('index', 'CinderClientReleaseNotes.tex',
|
||||||
u'Cinder Client Release Notes Documentation',
|
'Cinder Client Release Notes Documentation',
|
||||||
u'Cinder Developers', 'manual'),
|
'Cinder 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
|
||||||
|
@ -232,8 +232,8 @@ latex_documents = [
|
||||||
# (source start file, name, description, authors, manual section).
|
# (source start file, name, description, authors, manual section).
|
||||||
man_pages = [
|
man_pages = [
|
||||||
('index', 'cinderclientreleasenotes',
|
('index', 'cinderclientreleasenotes',
|
||||||
u'Cinder Client Release Notes Documentation',
|
'Cinder Client Release Notes Documentation',
|
||||||
[u'Cinder Developers'], 1)
|
['Cinder Developers'], 1)
|
||||||
]
|
]
|
||||||
|
|
||||||
# If true, show URL addresses after external links.
|
# If true, show URL addresses after external links.
|
||||||
|
@ -247,8 +247,8 @@ man_pages = [
|
||||||
# dir menu entry, description, category)
|
# dir menu entry, description, category)
|
||||||
texinfo_documents = [
|
texinfo_documents = [
|
||||||
('index', 'CinderClientReleaseNotes',
|
('index', 'CinderClientReleaseNotes',
|
||||||
u'Cinder Client Release Notes Documentation',
|
'Cinder Client Release Notes Documentation',
|
||||||
u'Cinder Developers', 'CinderClientReleaseNotes',
|
'Cinder Developers', 'CinderClientReleaseNotes',
|
||||||
'Block Storage Service client.',
|
'Block Storage Service client.',
|
||||||
'Miscellaneous'),
|
'Miscellaneous'),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue