Skip to content

Commit d921313

Browse files
tushargite96ostackbrian
authored andcommitted
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
1 parent 7e42196 commit d921313

3 files changed

Lines changed: 19 additions & 19 deletions

File tree

cinderclient/tests/unit/v2/fakes.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
def _stub_volume(*args, **kwargs):
2929
volume = {
3030
"migration_status": None,
31-
"attachments": [{u'server_id': u'1234',
32-
u'id': u'3f88836f-adde-4296-9f6b-2c59a0bcda9a',
33-
u'attachment_id': u'5678'}],
31+
"attachments": [{'server_id': '1234',
32+
'id': '3f88836f-adde-4296-9f6b-2c59a0bcda9a',
33+
'attachment_id': '5678'}],
3434
"links": [
3535
{
3636
"href": "http://localhost/v2/fake/volumes/1234",
@@ -741,7 +741,7 @@ def get_types_1(self, **kw):
741741
return (200, {}, {'volume_type': {'id': 1,
742742
'name': 'test-type-1',
743743
'description': 'test_type-1-desc',
744-
'extra_specs': {u'key': u'value'}}})
744+
'extra_specs': {'key': 'value'}}})
745745

746746
def get_types_2(self, **kw):
747747
return (200, {}, {'volume_type': {'id': 2,
@@ -1317,9 +1317,9 @@ def get_capabilities_host(self, **kw):
13171317
'storage_protocol': 'iSCSI',
13181318
'properties': {
13191319
'compression': {
1320-
u'title': u'Compression',
1321-
u'description': u'Enables compression.',
1322-
u'type': u'boolean'},
1320+
'title': 'Compression',
1321+
'description': 'Enables compression.',
1322+
'type': 'boolean'},
13231323
}
13241324
}
13251325
)

doc/source/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@
8181
# -- Options for manual page output ------------------------------------------
8282

8383
man_pages = [
84-
('cli/details', 'cinder', u'Client for OpenStack Block Storage API',
85-
[u'OpenStack Contributors'], 1),
84+
('cli/details', 'cinder', 'Client for OpenStack Block Storage API',
85+
['OpenStack Contributors'], 1),
8686
]
8787

8888
# -- Options for openstackdocstheme -------------------------------------------
@@ -104,8 +104,8 @@
104104
# (source start file, target name, title, author, documentclass
105105
# [howto/manual]).
106106
latex_documents = [
107-
('index', 'doc-python-cinderclient.tex', u'Cinder Client Documentation',
108-
u'Cinder Contributors', 'manual'),
107+
('index', 'doc-python-cinderclient.tex', 'Cinder Client Documentation',
108+
'Cinder Contributors', 'manual'),
109109
]
110110

111111
# The name of an image file (relative to this directory) to place at the top of

releasenotes/source/conf.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@
5555
master_doc = 'index'
5656

5757
# General information about the project.
58-
project = u'Cinder Client Release Notes'
58+
project = 'Cinder Client Release Notes'
5959
openstackdocs_auto_name = False
60-
copyright = u'2015, Cinder Developers'
60+
copyright = '2015, Cinder Developers'
6161

6262
# Release notes are version independent, no need to set version and release
6363
release = ''
@@ -201,8 +201,8 @@
201201
# author, documentclass [howto, manual, or own class]).
202202
latex_documents = [
203203
('index', 'CinderClientReleaseNotes.tex',
204-
u'Cinder Client Release Notes Documentation',
205-
u'Cinder Developers', 'manual'),
204+
'Cinder Client Release Notes Documentation',
205+
'Cinder Developers', 'manual'),
206206
]
207207

208208
# The name of an image file (relative to this directory) to place at the top of
@@ -232,8 +232,8 @@
232232
# (source start file, name, description, authors, manual section).
233233
man_pages = [
234234
('index', 'cinderclientreleasenotes',
235-
u'Cinder Client Release Notes Documentation',
236-
[u'Cinder Developers'], 1)
235+
'Cinder Client Release Notes Documentation',
236+
['Cinder Developers'], 1)
237237
]
238238

239239
# If true, show URL addresses after external links.
@@ -247,8 +247,8 @@
247247
# dir menu entry, description, category)
248248
texinfo_documents = [
249249
('index', 'CinderClientReleaseNotes',
250-
u'Cinder Client Release Notes Documentation',
251-
u'Cinder Developers', 'CinderClientReleaseNotes',
250+
'Cinder Client Release Notes Documentation',
251+
'Cinder Developers', 'CinderClientReleaseNotes',
252252
'Block Storage Service client.',
253253
'Miscellaneous'),
254254
]

0 commit comments

Comments
 (0)