summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-05-01 05:38:56 -0400
committerScott Moser <smoser@ubuntu.com>2015-05-01 05:38:56 -0400
commitb8aaefa5098d1bdab84ff86373dabf6631b09acf (patch)
tree8617f48d840137d94bed1958da4ebef7587e2bca /tools
parentf443edf5ed4892aff463d0b25d5f8e19388d83e7 (diff)
downloadcloud-init-b8aaefa5098d1bdab84ff86373dabf6631b09acf.tar.gz
fix 'Make pyflakes'
Diffstat (limited to 'tools')
-rwxr-xr-xtools/hacking.py2
-rwxr-xr-xtools/validate-yaml.py3
2 files changed, 2 insertions, 3 deletions
diff --git a/tools/hacking.py b/tools/hacking.py
index e7797564..3175df38 100755
--- a/tools/hacking.py
+++ b/tools/hacking.py
@@ -128,7 +128,7 @@ def cloud_docstring_multiline_end(physical_line):
"""
pos = max([physical_line.find(i) for i in DOCSTRING_TRIPLE]) # start
if (pos != -1 and len(physical_line) == pos):
- print physical_line
+ print(physical_line)
if (physical_line[pos + 3] == ' '):
return (pos, "N403: multi line docstring end on new line")
diff --git a/tools/validate-yaml.py b/tools/validate-yaml.py
index eda59cb8..6e164590 100755
--- a/tools/validate-yaml.py
+++ b/tools/validate-yaml.py
@@ -4,7 +4,6 @@
"""
import sys
-
import yaml
@@ -17,7 +16,7 @@ if __name__ == "__main__":
yaml.safe_load(fh.read())
fh.close()
sys.stdout.write(" - ok\n")
- except Exception, e:
+ except Exception as e:
sys.stdout.write(" - bad (%s)\n" % (e))
bads += 1
if bads > 0: