remove unicode literal from code
All strings are considered as unicode string from Python 3. This patch drops the explicit unicode literal (u'...') appearances from the unicode strings. Change-Id: I3da0593718fa0196e238a2d5a343b958ce34f201
This commit is contained in:
parent
492c33675f
commit
81ec6a930f
@ -39,8 +39,8 @@ source_suffix = '.rst'
|
|||||||
master_doc = 'index'
|
master_doc = 'index'
|
||||||
|
|
||||||
# General information about the project.
|
# General information about the project.
|
||||||
project = u'whereto'
|
project = 'whereto'
|
||||||
copyright = u'2017, OpenStack Developers'
|
copyright = '2017, OpenStack Developers'
|
||||||
|
|
||||||
# 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
|
||||||
@ -77,8 +77,8 @@ htmlhelp_basename = '%sdoc' % project
|
|||||||
latex_documents = [
|
latex_documents = [
|
||||||
('index',
|
('index',
|
||||||
'%s.tex' % project,
|
'%s.tex' % project,
|
||||||
u'%s Documentation' % project,
|
'%s Documentation' % project,
|
||||||
u'OpenStack Developers', 'manual'),
|
'OpenStack Developers', 'manual'),
|
||||||
]
|
]
|
||||||
|
|
||||||
# Example configuration for intersphinx: refer to the Python standard library.
|
# Example configuration for intersphinx: refer to the Python standard library.
|
||||||
|
@ -26,7 +26,7 @@ class TestParseRules(base.TestCase):
|
|||||||
return list(parser.parse_rules(input))
|
return list(parser.parse_rules(input))
|
||||||
|
|
||||||
def test_skip_comments(self):
|
def test_skip_comments(self):
|
||||||
input = u"""
|
input = """
|
||||||
#
|
#
|
||||||
"""
|
"""
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
@ -35,7 +35,7 @@ class TestParseRules(base.TestCase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def test_skip_blank_lines(self):
|
def test_skip_blank_lines(self):
|
||||||
input = u"""
|
input = """
|
||||||
|
|
||||||
"""
|
"""
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
@ -44,7 +44,7 @@ class TestParseRules(base.TestCase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def test_no_quotes(self):
|
def test_no_quotes(self):
|
||||||
input = u"""
|
input = """
|
||||||
redirect /path /new/path
|
redirect /path /new/path
|
||||||
"""
|
"""
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
@ -53,7 +53,7 @@ class TestParseRules(base.TestCase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def test_strip_quotes(self):
|
def test_strip_quotes(self):
|
||||||
input = u"""
|
input = """
|
||||||
redirectmatch 301 "^/releases.*$" http://releases.openstack.org$1
|
redirectmatch 301 "^/releases.*$" http://releases.openstack.org$1
|
||||||
"""
|
"""
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
@ -70,7 +70,7 @@ class TestParseTests(base.TestCase):
|
|||||||
return list(parser.parse_tests(input))
|
return list(parser.parse_tests(input))
|
||||||
|
|
||||||
def test_skip_comments(self):
|
def test_skip_comments(self):
|
||||||
input = u"""
|
input = """
|
||||||
#
|
#
|
||||||
"""
|
"""
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
@ -79,7 +79,7 @@ class TestParseTests(base.TestCase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def test_skip_blank_lines(self):
|
def test_skip_blank_lines(self):
|
||||||
input = u"""
|
input = """
|
||||||
|
|
||||||
"""
|
"""
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
@ -88,7 +88,7 @@ class TestParseTests(base.TestCase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def test_no_quotes(self):
|
def test_no_quotes(self):
|
||||||
input = u"""
|
input = """
|
||||||
/path 301 /new/path
|
/path 301 /new/path
|
||||||
"""
|
"""
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
@ -97,7 +97,7 @@ class TestParseTests(base.TestCase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def test_strip_quotes(self):
|
def test_strip_quotes(self):
|
||||||
input = u"""
|
input = """
|
||||||
/releases/foo 301 http://releases.openstack.org/foo
|
/releases/foo 301 http://releases.openstack.org/foo
|
||||||
"""
|
"""
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
@ -107,7 +107,7 @@ class TestParseTests(base.TestCase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def test_410_rule(self):
|
def test_410_rule(self):
|
||||||
input = u"""
|
input = """
|
||||||
/releases 410
|
/releases 410
|
||||||
"""
|
"""
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
@ -116,7 +116,7 @@ class TestParseTests(base.TestCase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def test_200_rule(self):
|
def test_200_rule(self):
|
||||||
input = u"""
|
input = """
|
||||||
/releases 200
|
/releases 200
|
||||||
"""
|
"""
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
|
Loading…
Reference in New Issue
Block a user