summaryrefslogtreecommitdiff
path: root/cloudinit/safeyaml.py
diff options
context:
space:
mode:
authorScott Moser <smoser@brickies.net>2016-11-10 21:01:12 -0500
committerScott Moser <smoser@brickies.net>2016-11-10 21:01:12 -0500
commit584b8434872322a9f617831742cc6b15977ecfbc (patch)
tree2b4bf7cba8b20817789276ed34a108172ec4e119 /cloudinit/safeyaml.py
parentbf4010a9c379e2109b030af558033014f9137f47 (diff)
downloadcloud-init-git-584b8434872322a9f617831742cc6b15977ecfbc.tar.gz
pep8: fix style errors reported by pycodestyle 2.1.0
pycodestyle 2.1.0 is in Ubuntu zesty, and complained about the changes made here. Simple style changes. This makes 'make pep8' pass again when built in a zesty build system with proposed enabled.
Diffstat (limited to 'cloudinit/safeyaml.py')
-rw-r--r--cloudinit/safeyaml.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cloudinit/safeyaml.py b/cloudinit/safeyaml.py
index eba5d056..f6a3f765 100644
--- a/cloudinit/safeyaml.py
+++ b/cloudinit/safeyaml.py
@@ -23,6 +23,7 @@ class _CustomSafeLoader(yaml.SafeLoader):
def construct_python_unicode(self, node):
return self.construct_scalar(node)
+
_CustomSafeLoader.add_constructor(
u'tag:yaml.org,2002:python/unicode',
_CustomSafeLoader.construct_python_unicode)