remove unicode 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: Ifd455c425249cefa0082607993c157e7b884f0e2
This commit is contained in:
liyou01 2021-01-07 11:18:23 +08:00 committed by Ian Y. Choi
parent 53a1d96c9b
commit b7454910e4
2 changed files with 11 additions and 11 deletions

View File

@ -54,8 +54,8 @@ source_suffix = '.rst'
master_doc = 'index' master_doc = 'index'
# General information about the project. # General information about the project.
project = u'OpenStack Election' project = 'OpenStack Election'
copyright = u'2015, OpenStack' copyright = '2015, OpenStack'
# openstackdocstheme options # openstackdocstheme options
openstackdocs_repo_name = 'openstack/election' openstackdocs_repo_name = 'openstack/election'
@ -188,8 +188,8 @@ htmlhelp_basename = 'Tempestdoc'
# Grouping the document tree into LaTeX files. List of tuples # Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual]). # (source start file, target name, title, author, documentclass [howto/manual]).
latex_documents = [ latex_documents = [
('index', 'Governance.tex', u'OpenStack Governance Documents', ('index', 'Governance.tex', 'OpenStack Governance Documents',
u'OpenStack TC', 'manual'), 'OpenStack TC', '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
@ -230,8 +230,8 @@ man_pages = [
# (source start file, target name, title, author, # (source start file, target name, title, author,
# dir menu entry, description, category) # dir menu entry, description, category)
texinfo_documents = [ texinfo_documents = [
('index', 'Governance', u'OpenStack Governance Documents', ('index', 'Governance', 'OpenStack Governance Documents',
u'OpenStack TC', 'Governance', 'One line description of project.', 'OpenStack TC', 'Governance', 'One line description of project.',
'Miscellaneous'), 'Miscellaneous'),
] ]
@ -248,10 +248,10 @@ texinfo_documents = [
# -- Options for Epub output --------------------------------------------------- # -- Options for Epub output ---------------------------------------------------
# Bibliographic Dublin Core info. # Bibliographic Dublin Core info.
epub_title = u'OpenStack Election' epub_title = 'OpenStack Election'
epub_author = u'OpenStack Election Officials' epub_author = 'OpenStack Election Officials'
epub_publisher = u'OpenStack' epub_publisher = 'OpenStack'
epub_copyright = u'2015, OpenStack' epub_copyright = '2015, OpenStack'
# The language of the text. It defaults to the language option # The language of the text. It defaults to the language option
# or en if the language is not set. # or en if the language is not set.

View File

@ -204,7 +204,7 @@ def get_fullname(member, filepath=None):
if filepath and filepath in exceptions: if filepath and filepath in exceptions:
return exceptions[filepath] return exceptions[filepath]
full_name = u'' full_name = ''
member_data = member.get('data', []) member_data = member.get('data', [])
if member_data: if member_data:
first_name = member_data[0].get('first_name', '') first_name = member_data[0].get('first_name', '')