remove unicode prefix from code

Change-Id: I5fe3d44c24cf32a70bf398b6e2cd4ac15076fae4
This commit is contained in:
niuke 2022-08-11 19:34:57 +08:00
parent abb436deb3
commit 6a7cb9c994
4 changed files with 14 additions and 14 deletions

View File

@ -37,8 +37,8 @@ source_suffix = '.rst'
master_doc = 'index' master_doc = 'index'
# General information about the project. # General information about the project.
project = u'os-ken' project = 'os-ken'
copyright = u'2018, OpenStack Developers' copyright = '2018, OpenStack Developers'
# openstackdocstheme options # openstackdocstheme options
openstackdocs_repo_name = 'openstack/os-ken' openstackdocs_repo_name = 'openstack/os-ken'
@ -77,8 +77,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 Developers', 'manual'), 'OpenStack Developers', 'manual'),
] ]
latex_use_xindy = False latex_use_xindy = False

View File

@ -204,7 +204,7 @@ class BMPClient(Activity):
self._socket = socket self._socket = socket
# send init message # send init message
init_info = {'type': bmp.BMP_INIT_TYPE_STRING, init_info = {'type': bmp.BMP_INIT_TYPE_STRING,
'value': u'This is OSKen BGP BMP message'} 'value': 'This is OSKen BGP BMP message'}
init_msg = bmp.BMPInitiation([init_info]) init_msg = bmp.BMPInitiation([init_info])
self._send(init_msg) self._send(init_msg)

View File

@ -134,7 +134,7 @@ class Test_bmp(unittest.TestCase):
def test_initiation(self): def test_initiation(self):
initiation_info = [{'type': bmp.BMP_INIT_TYPE_STRING, initiation_info = [{'type': bmp.BMP_INIT_TYPE_STRING,
'value': u'This is OSKen BGP BMP message'}] 'value': 'This is OSKen BGP BMP message'}]
msg = bmp.BMPInitiation(info=initiation_info) msg = bmp.BMPInitiation(info=initiation_info)
binmsg = msg.serialize() binmsg = msg.serialize()
msg2, rest = bmp.BMPMessage.parser(binmsg) msg2, rest = bmp.BMPMessage.parser(binmsg)

View File

@ -52,8 +52,8 @@ source_suffix = '.rst'
master_doc = 'index' master_doc = 'index'
# General information about the project. # General information about the project.
project = u'os_ken Release Notes' project = 'os_ken Release Notes'
copyright = u'2018, OpenStack Developers' copyright = '2018, OpenStack Developers'
# openstackdocstheme options # openstackdocstheme options
openstackdocs_repo_name = 'openstack/os-ken' openstackdocs_repo_name = 'openstack/os-ken'
@ -213,8 +213,8 @@ latex_elements = {
# author, documentclass [howto, manual, or own class]). # author, documentclass [howto, manual, or own class]).
latex_documents = [ latex_documents = [
('index', 'os_kenReleaseNotes.tex', ('index', 'os_kenReleaseNotes.tex',
u'os_ken Release Notes Documentation', 'os_ken Release Notes Documentation',
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
@ -244,8 +244,8 @@ latex_documents = [
# (source start file, name, description, authors, manual section). # (source start file, name, description, authors, manual section).
man_pages = [ man_pages = [
('index', 'os_kenrereleasenotes', ('index', 'os_kenrereleasenotes',
u'os_ken Release Notes Documentation', 'os_ken Release Notes Documentation',
[u'OpenStack Foundation'], 1) ['OpenStack Foundation'], 1)
] ]
# If true, show URL addresses after external links. # If true, show URL addresses after external links.
@ -259,8 +259,8 @@ man_pages = [
# dir menu entry, description, category) # dir menu entry, description, category)
texinfo_documents = [ texinfo_documents = [
('index', 'os_ken ReleaseNotes', ('index', 'os_ken ReleaseNotes',
u'os_ken Release Notes Documentation', 'os_ken Release Notes Documentation',
u'OpenStack Foundation', 'os_kenReleaseNotes', 'OpenStack Foundation', 'os_kenReleaseNotes',
'One line description of project.', 'One line description of project.',
'Miscellaneous'), 'Miscellaneous'),
] ]