~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:24:01 UTC
  • mto: This revision was merged to the branch mainline in revision 712.
  • Revision ID: smoser@ubuntu.com-20121111032401-hson0xw23fov0yon
revert unrelated whitespace changes that creeped in.

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
 
    split_previous = split_previous.strip().lower().split()
 
69
    split_previous = import_normalize(lines[line_number - 2]
 
70
            ).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