From b7454910e417d2263939f41df96a9f64336b4a3b Mon Sep 17 00:00:00 2001 From: liyou01 Date: Thu, 7 Jan 2021 11:18:23 +0800 Subject: [PATCH] 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 --- doc/source/conf.py | 20 ++++++++++---------- openstack_election/utils.py | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index c63c3ac5..5c9bddf8 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -54,8 +54,8 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = u'OpenStack Election' -copyright = u'2015, OpenStack' +project = 'OpenStack Election' +copyright = '2015, OpenStack' # openstackdocstheme options openstackdocs_repo_name = 'openstack/election' @@ -188,8 +188,8 @@ htmlhelp_basename = 'Tempestdoc' # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ - ('index', 'Governance.tex', u'OpenStack Governance Documents', - u'OpenStack TC', 'manual'), + ('index', 'Governance.tex', 'OpenStack Governance Documents', + 'OpenStack TC', 'manual'), ] # 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, # dir menu entry, description, category) texinfo_documents = [ - ('index', 'Governance', u'OpenStack Governance Documents', - u'OpenStack TC', 'Governance', 'One line description of project.', + ('index', 'Governance', 'OpenStack Governance Documents', + 'OpenStack TC', 'Governance', 'One line description of project.', 'Miscellaneous'), ] @@ -248,10 +248,10 @@ texinfo_documents = [ # -- Options for Epub output --------------------------------------------------- # Bibliographic Dublin Core info. -epub_title = u'OpenStack Election' -epub_author = u'OpenStack Election Officials' -epub_publisher = u'OpenStack' -epub_copyright = u'2015, OpenStack' +epub_title = 'OpenStack Election' +epub_author = 'OpenStack Election Officials' +epub_publisher = 'OpenStack' +epub_copyright = '2015, OpenStack' # The language of the text. It defaults to the language option # or en if the language is not set. diff --git a/openstack_election/utils.py b/openstack_election/utils.py index 6ca56370..a650046b 100644 --- a/openstack_election/utils.py +++ b/openstack_election/utils.py @@ -204,7 +204,7 @@ def get_fullname(member, filepath=None): if filepath and filepath in exceptions: return exceptions[filepath] - full_name = u'' + full_name = '' member_data = member.get('data', []) if member_data: first_name = member_data[0].get('first_name', '')