diff options
author | Ryan Harper <ryan.harper@canonical.com> | 2016-03-04 09:51:05 -0600 |
---|---|---|
committer | Ryan Harper <ryan.harper@canonical.com> | 2016-03-04 09:51:05 -0600 |
commit | 70acc910c3368980d7cb8971391a2c9dfaf3fda8 (patch) | |
tree | b59d76e1f17c5a1ac41dd6619068e2e63a4461b8 /tools/hacking.py | |
parent | 6aa82c9682406e03268939fff362a397b54fb9a4 (diff) | |
download | vyos-cloud-init-70acc910c3368980d7cb8971391a2c9dfaf3fda8.tar.gz vyos-cloud-init-70acc910c3368980d7cb8971391a2c9dfaf3fda8.zip |
pep8: update formatting to pass pep8 1.4.6 (trusty) and 1.6.2 (xenial)
make check fails in a trusty sbuild due to different rules on older pep8.
Fix formatting to pass in older and newer pep8.
Diffstat (limited to 'tools/hacking.py')
-rwxr-xr-x | tools/hacking.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/hacking.py b/tools/hacking.py index 1a0631c2..716c1154 100755 --- a/tools/hacking.py +++ b/tools/hacking.py @@ -49,8 +49,8 @@ def import_normalize(line): if (line.startswith("from ") and "," not in line and split_line[2] == "import" and split_line[3] != "*" and split_line[1] != "__future__" and - (len(split_line) == 4 or - (len(split_line) == 6 and split_line[4] == "as"))): + (len(split_line) == 4 or (len(split_line) == 6 and + split_line[4] == "as"))): return "import %s.%s" % (split_line[1], split_line[3]) else: return line |