~smoser/cloud-init/lp-1077700

« back to all changes in this revision

Viewing changes to tools/hacking.py

  • Committer: Scott Moser
  • Date: 2012-11-11 03:32:49 UTC
  • Revision ID: smoser@ubuntu.com-20121111033249-3eqgq1qfyzwcr1h4
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.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
    # handle import x
67
67
    # use .lower since capitalization shouldn't dictate order
68
68
    split_line = import_normalize(physical_line.strip()).lower().split()
69
 
    split_previous = import_normalize(lines[line_number - 2]
70
 
            ).strip().lower().split()
 
69
    split_previous = import_normalize(lines[line_number - 2])
 
70
    split_previous = split_previous.strip().lower().split()
71
71
    # with or without "as y"
72
72
    length = [2, 4]
73
73
    if (len(split_line) in length and len(split_previous) in length and