remove unicode from code
In Python 3, all strings are represented in Unicode.In Python 2 are stored internally as 8-bit ASCII, hence it is required to attach 'u' to make it Unicode. It is no longer necessary now.' Change-Id: Ib739730cf74a880fc07f0279f55dd00e9c003465
This commit is contained in:
@@ -44,8 +44,8 @@ source_suffix = '.rst'
|
|||||||
master_doc = 'index'
|
master_doc = 'index'
|
||||||
|
|
||||||
# General information about the project.
|
# General information about the project.
|
||||||
project = u'manila-ui'
|
project = 'manila-ui'
|
||||||
copyright = u'2013, OpenStack Foundation'
|
copyright = '2013, OpenStack Foundation'
|
||||||
|
|
||||||
# If true, '()' will be appended to :func: etc. cross-reference text.
|
# If true, '()' will be appended to :func: etc. cross-reference text.
|
||||||
add_function_parentheses = True
|
add_function_parentheses = True
|
||||||
@@ -85,8 +85,8 @@ htmlhelp_basename = '%sdoc' % project
|
|||||||
latex_documents = [
|
latex_documents = [
|
||||||
('index',
|
('index',
|
||||||
'doc-%s.tex' % project,
|
'doc-%s.tex' % project,
|
||||||
u'%s Documentation' % project,
|
'%s Documentation' % project,
|
||||||
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
|
||||||
|
@@ -37,7 +37,7 @@ class ShareGroupTypeTests(test.BaseAdminViewTests):
|
|||||||
def test_create_share_group_type(self):
|
def test_create_share_group_type(self):
|
||||||
url = reverse('horizon:admin:share_group_types:create')
|
url = reverse('horizon:admin:share_group_types:create')
|
||||||
data = {
|
data = {
|
||||||
'method': u'CreateShareGroupTypeForm',
|
'method': 'CreateShareGroupTypeForm',
|
||||||
'is_public': True,
|
'is_public': True,
|
||||||
'name': 'my_share_group_type',
|
'name': 'my_share_group_type',
|
||||||
'share_types': ['foo'],
|
'share_types': ['foo'],
|
||||||
|
@@ -33,9 +33,9 @@ class SecurityServicesViewTests(test.TestCase):
|
|||||||
def test_create_security_service(self):
|
def test_create_security_service(self):
|
||||||
sec_service = test_data.sec_service
|
sec_service = test_data.sec_service
|
||||||
formData = {
|
formData = {
|
||||||
'name': u'new_sec_service',
|
'name': 'new_sec_service',
|
||||||
'description': u'This is test security service',
|
'description': 'This is test security service',
|
||||||
'method': u'CreateForm',
|
'method': 'CreateForm',
|
||||||
'dns_ip': '1.2.3.4',
|
'dns_ip': '1.2.3.4',
|
||||||
'user': 'SomeUser',
|
'user': 'SomeUser',
|
||||||
'password': 'safepass',
|
'password': 'safepass',
|
||||||
|
@@ -284,7 +284,7 @@ class SnapshotSnapshotViewTests(test.TestCase):
|
|||||||
mock.Mock(side_effect=exc))
|
mock.Mock(side_effect=exc))
|
||||||
formData = {
|
formData = {
|
||||||
'access_type': 'user',
|
'access_type': 'user',
|
||||||
'method': u'CreateForm',
|
'method': 'CreateForm',
|
||||||
'access_to': 'someuser',
|
'access_to': 'someuser',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -93,12 +93,12 @@ class ShareViewTests(test.APITestCase):
|
|||||||
share_net = test_data.active_share_network
|
share_net = test_data.active_share_network
|
||||||
share_nets = [share_net]
|
share_nets = [share_net]
|
||||||
formData = {
|
formData = {
|
||||||
'name': u'new_share',
|
'name': 'new_share',
|
||||||
'description': u'This is test share',
|
'description': 'This is test share',
|
||||||
'method': u'CreateForm',
|
'method': 'CreateForm',
|
||||||
'share_network': share_net.id,
|
'share_network': share_net.id,
|
||||||
'size': 1,
|
'size': 1,
|
||||||
'share_proto': u'NFS',
|
'share_proto': 'NFS',
|
||||||
'share_type': 'fake',
|
'share_type': 'fake',
|
||||||
'share-network-choices-fake': share_net.id,
|
'share-network-choices-fake': share_net.id,
|
||||||
'availability_zone': 'fake_az',
|
'availability_zone': 'fake_az',
|
||||||
@@ -138,9 +138,9 @@ class ShareViewTests(test.APITestCase):
|
|||||||
snapshot = test_data.snapshot
|
snapshot = test_data.snapshot
|
||||||
url = reverse('horizon:project:shares:create')
|
url = reverse('horizon:project:shares:create')
|
||||||
formData = {
|
formData = {
|
||||||
'name': u'new_share',
|
'name': 'new_share',
|
||||||
'description': u'This is test share from snapshot',
|
'description': 'This is test share from snapshot',
|
||||||
'method': u'CreateForm',
|
'method': 'CreateForm',
|
||||||
'share_network': share_net.id,
|
'share_network': share_net.id,
|
||||||
'size': snapshot.size,
|
'size': snapshot.size,
|
||||||
'share_proto': 'NFS',
|
'share_proto': 'NFS',
|
||||||
@@ -322,7 +322,7 @@ class ShareViewTests(test.APITestCase):
|
|||||||
self.mock_object(api_manila, "share_allow")
|
self.mock_object(api_manila, "share_allow")
|
||||||
formData = {
|
formData = {
|
||||||
'access_type': 'user',
|
'access_type': 'user',
|
||||||
'method': u'CreateForm',
|
'method': 'CreateForm',
|
||||||
'access_to': 'someuser',
|
'access_to': 'someuser',
|
||||||
'access_level': 'rw',
|
'access_level': 'rw',
|
||||||
}
|
}
|
||||||
@@ -619,12 +619,12 @@ class ShareViewTests(test.APITestCase):
|
|||||||
mock.Mock(return_value=[self.FakeAZ('fake_az'), ]))
|
mock.Mock(return_value=[self.FakeAZ('fake_az'), ]))
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
'name': u'new_share',
|
'name': 'new_share',
|
||||||
'description': u'This is test share',
|
'description': 'This is test share',
|
||||||
'method': u'CreateForm',
|
'method': 'CreateForm',
|
||||||
'share_network': test_data.active_share_network.id,
|
'share_network': test_data.active_share_network.id,
|
||||||
'size': 1,
|
'size': 1,
|
||||||
'share_proto': u'NFS',
|
'share_proto': 'NFS',
|
||||||
'share_type': 'fake',
|
'share_type': 'fake',
|
||||||
'share-network-choices-fake': test_data.active_share_network.id,
|
'share-network-choices-fake': test_data.active_share_network.id,
|
||||||
'availability_zone': 'fake_az',
|
'availability_zone': 'fake_az',
|
||||||
@@ -682,8 +682,8 @@ class ShareViewTests(test.APITestCase):
|
|||||||
api_manila, "share_update", mock.Mock(return_value=self.share))
|
api_manila, "share_update", mock.Mock(return_value=self.share))
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
'name': u'old_share',
|
'name': 'old_share',
|
||||||
'description': u'This is test share',
|
'description': 'This is test share',
|
||||||
}
|
}
|
||||||
if enable_public_shares:
|
if enable_public_shares:
|
||||||
data.update({'is_public': is_public})
|
data.update({'is_public': is_public})
|
||||||
|
@@ -90,7 +90,7 @@ other_share = shares.Share(
|
|||||||
{'id': "21023e92-8008-1234-8059-7f2293ff3889",
|
{'id': "21023e92-8008-1234-8059-7f2293ff3889",
|
||||||
'status': 'in-use',
|
'status': 'in-use',
|
||||||
'size': 10,
|
'size': 10,
|
||||||
'name': u'my_share',
|
'name': 'my_share',
|
||||||
'description': '',
|
'description': '',
|
||||||
'share_proto': 'NFS',
|
'share_proto': 'NFS',
|
||||||
'metadata': {},
|
'metadata': {},
|
||||||
|
@@ -61,8 +61,8 @@ source_suffix = '.rst'
|
|||||||
master_doc = 'index'
|
master_doc = 'index'
|
||||||
|
|
||||||
# General information about the project.
|
# General information about the project.
|
||||||
project = u'manila-ui Release Notes'
|
project = 'manila-ui Release Notes'
|
||||||
copyright = u'2016, Manila Developers'
|
copyright = '2016, Manila Developers'
|
||||||
|
|
||||||
# Release notes are version independent
|
# Release notes are version independent
|
||||||
release = ''
|
release = ''
|
||||||
@@ -208,8 +208,8 @@ latex_elements = {
|
|||||||
# author, documentclass [howto, manual, or own class]).
|
# author, documentclass [howto, manual, or own class]).
|
||||||
latex_documents = [
|
latex_documents = [
|
||||||
('index', 'ManilaUIReleaseNotes.tex',
|
('index', 'ManilaUIReleaseNotes.tex',
|
||||||
u'manila-ui Release Notes Documentation',
|
'manila-ui Release Notes Documentation',
|
||||||
u'Manila Developers', 'manual'),
|
'Manila 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
|
||||||
@@ -239,8 +239,8 @@ latex_documents = [
|
|||||||
# (source start file, name, description, authors, manual section).
|
# (source start file, name, description, authors, manual section).
|
||||||
man_pages = [
|
man_pages = [
|
||||||
('index', 'manilauireleasenotes',
|
('index', 'manilauireleasenotes',
|
||||||
u'manila-ui Release Notes Documentation',
|
'manila-ui Release Notes Documentation',
|
||||||
[u'Manila Developers'], 1)
|
['Manila Developers'], 1)
|
||||||
]
|
]
|
||||||
|
|
||||||
# If true, show URL addresses after external links.
|
# If true, show URL addresses after external links.
|
||||||
@@ -254,8 +254,8 @@ man_pages = [
|
|||||||
# dir menu entry, description, category)
|
# dir menu entry, description, category)
|
||||||
texinfo_documents = [
|
texinfo_documents = [
|
||||||
('index', 'ManilaUIReleaseNotes',
|
('index', 'ManilaUIReleaseNotes',
|
||||||
u'manila-ui Release Notes Documentation',
|
'manila-ui Release Notes Documentation',
|
||||||
u'Manila Developers', 'ManilaUIReleaseNotes',
|
'Manila Developers', 'ManilaUIReleaseNotes',
|
||||||
'One line description of project.',
|
'One line description of project.',
|
||||||
'Miscellaneous'),
|
'Miscellaneous'),
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user