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'
|
||||
|
||||
# General information about the project.
|
||||
project = u'whereto'
|
||||
copyright = u'2017, OpenStack Developers'
|
||||
project = 'whereto'
|
||||
copyright = '2017, OpenStack Developers'
|
||||
|
||||
# If true, '()' will be appended to :func: etc. cross-reference text.
|
||||
add_function_parentheses = True
|
||||
@ -77,8 +77,8 @@ htmlhelp_basename = '%sdoc' % project
|
||||
latex_documents = [
|
||||
('index',
|
||||
'%s.tex' % project,
|
||||
u'%s Documentation' % project,
|
||||
u'OpenStack Developers', 'manual'),
|
||||
'%s Documentation' % project,
|
||||
'OpenStack Developers', 'manual'),
|
||||
]
|
||||
|
||||
# Example configuration for intersphinx: refer to the Python standard library.
|
||||
|
@ -26,7 +26,7 @@ class TestParseRules(base.TestCase):
|
||||
return list(parser.parse_rules(input))
|
||||
|
||||
def test_skip_comments(self):
|
||||
input = u"""
|
||||
input = """
|
||||
#
|
||||
"""
|
||||
self.assertEqual(
|
||||
@ -35,7 +35,7 @@ class TestParseRules(base.TestCase):
|
||||
)
|
||||
|
||||
def test_skip_blank_lines(self):
|
||||
input = u"""
|
||||
input = """
|
||||
|
||||
"""
|
||||
self.assertEqual(
|
||||
@ -44,7 +44,7 @@ class TestParseRules(base.TestCase):
|
||||
)
|
||||
|
||||
def test_no_quotes(self):
|
||||
input = u"""
|
||||
input = """
|
||||
redirect /path /new/path
|
||||
"""
|
||||
self.assertEqual(
|
||||
@ -53,7 +53,7 @@ class TestParseRules(base.TestCase):
|
||||
)
|
||||
|
||||
def test_strip_quotes(self):
|
||||
input = u"""
|
||||
input = """
|
||||
redirectmatch 301 "^/releases.*$" http://releases.openstack.org$1
|
||||
"""
|
||||
self.assertEqual(
|
||||
@ -70,7 +70,7 @@ class TestParseTests(base.TestCase):
|
||||
return list(parser.parse_tests(input))
|
||||
|
||||
def test_skip_comments(self):
|
||||
input = u"""
|
||||
input = """
|
||||
#
|
||||
"""
|
||||
self.assertEqual(
|
||||
@ -79,7 +79,7 @@ class TestParseTests(base.TestCase):
|
||||
)
|
||||
|
||||
def test_skip_blank_lines(self):
|
||||
input = u"""
|
||||
input = """
|
||||
|
||||
"""
|
||||
self.assertEqual(
|
||||
@ -88,7 +88,7 @@ class TestParseTests(base.TestCase):
|
||||
)
|
||||
|
||||
def test_no_quotes(self):
|
||||
input = u"""
|
||||
input = """
|
||||
/path 301 /new/path
|
||||
"""
|
||||
self.assertEqual(
|
||||
@ -97,7 +97,7 @@ class TestParseTests(base.TestCase):
|
||||
)
|
||||
|
||||
def test_strip_quotes(self):
|
||||
input = u"""
|
||||
input = """
|
||||
/releases/foo 301 http://releases.openstack.org/foo
|
||||
"""
|
||||
self.assertEqual(
|
||||
@ -107,7 +107,7 @@ class TestParseTests(base.TestCase):
|
||||
)
|
||||
|
||||
def test_410_rule(self):
|
||||
input = u"""
|
||||
input = """
|
||||
/releases 410
|
||||
"""
|
||||
self.assertEqual(
|
||||
@ -116,7 +116,7 @@ class TestParseTests(base.TestCase):
|
||||
)
|
||||
|
||||
def test_200_rule(self):
|
||||
input = u"""
|
||||
input = """
|
||||
/releases 200
|
||||
"""
|
||||
self.assertEqual(
|
||||
|
Loading…
x
Reference in New Issue
Block a user