Dropping explicit unicode literal
In python 3, all strings are considered as unicode string. This patch drops the explicit unicode literal (u'...') or (u"..") appearances from the unicode strings. Change-Id: Iaa040f10028935782d8315efc81d344e72b2a152
This commit is contained in:
parent
91c4415c42
commit
e41b382afd
@ -35,7 +35,7 @@ source_suffix = '.rst'
|
||||
master_doc = 'index'
|
||||
|
||||
# General information about the project.
|
||||
copyright = u'2013, OpenStack Foundation'
|
||||
copyright = '2013, OpenStack Foundation'
|
||||
|
||||
# openstackdocstheme options
|
||||
openstackdocs_repo_name = 'openstack/heat-translator'
|
||||
@ -63,8 +63,8 @@ htmlhelp_basename = 'heat-translatordoc'
|
||||
latex_documents = [
|
||||
('index',
|
||||
'heat-translator.tex',
|
||||
u'heat-translator Documentation',
|
||||
u'OpenStack Foundation', 'manual'),
|
||||
'heat-translator Documentation',
|
||||
'OpenStack Foundation', 'manual'),
|
||||
]
|
||||
|
||||
# Example configuration for intersphinx: refer to the Python standard library.
|
||||
|
@ -479,7 +479,7 @@ class HotResource(object):
|
||||
node_key = dumper.represent_data(key)
|
||||
node_value = dumper.represent_data(value)
|
||||
nodes.append((node_key, node_value))
|
||||
return yaml.nodes.MappingNode(u'tag:yaml.org,2002:map', nodes)
|
||||
return yaml.nodes.MappingNode('tag:yaml.org,2002:map', nodes)
|
||||
|
||||
def _handle_nested_template(self, scale_res, yaml_name,
|
||||
hot_template_parameters,
|
||||
|
@ -43,7 +43,7 @@ class HotTemplate(object):
|
||||
node_key = dumper.represent_data(key)
|
||||
node_value = dumper.represent_data(value)
|
||||
nodes.append((node_key, node_value))
|
||||
return yaml.nodes.MappingNode(u'tag:yaml.org,2002:map', nodes)
|
||||
return yaml.nodes.MappingNode('tag:yaml.org,2002:map', nodes)
|
||||
|
||||
def output_to_yaml_files_dict(self, base_filename,
|
||||
hot_template_version=LATEST):
|
||||
|
Loading…
Reference in New Issue
Block a user