summaryrefslogtreecommitdiff
path: root/tools/hacking.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2012-11-10 22:32:49 -0500
committerScott Moser <smoser@ubuntu.com>2012-11-10 22:32:49 -0500
commit3248ac9bbb2008e88a3bd9c030ba0fcbc14b7fce (patch)
tree7f9855096e0e313df3fb5d5684c14c7099bef6d7 /tools/hacking.py
parent6a3bd563282a51695bf1384d057d0495fd59929f (diff)
downloadvyos-cloud-init-3248ac9bbb2008e88a3bd9c030ba0fcbc14b7fce.tar.gz
vyos-cloud-init-3248ac9bbb2008e88a3bd9c030ba0fcbc14b7fce.zip
whitespace / indentation cleanups
These changes were pulled out of the previous merge (cc_yum_add_repo) as they were unrelated there. Re-applying them here.
Diffstat (limited to 'tools/hacking.py')
-rwxr-xr-xtools/hacking.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/hacking.py b/tools/hacking.py
index 11163df3..26a07c53 100755
--- a/tools/hacking.py
+++ b/tools/hacking.py
@@ -66,8 +66,8 @@ def cloud_import_alphabetical(physical_line, line_number, lines):
# handle import x
# use .lower since capitalization shouldn't dictate order
split_line = import_normalize(physical_line.strip()).lower().split()
- split_previous = import_normalize(lines[line_number - 2]
- ).strip().lower().split()
+ split_previous = import_normalize(lines[line_number - 2])
+ split_previous = split_previous.strip().lower().split()
# with or without "as y"
length = [2, 4]
if (len(split_line) in length and len(split_previous) in length and