~oddbloke/cloud-init/fix-gce-az

« back to all changes in this revision

Viewing changes to cloudinit/config/cc_apt_pipelining.py

  • Committer: Scott Moser
  • Date: 2015-05-01 09:38:56 UTC
  • Revision ID: smoser@ubuntu.com-20150501093856-9ogq51r7w33sqvqa
fix 'Make pyflakes'

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
        write_apt_snippet("0", log, DEFAULT_FILE)
44
44
    elif apt_pipe_value_s in ("none", "unchanged", "os"):
45
45
        return
46
 
    elif apt_pipe_value_s in [str(b) for b in xrange(0, 6)]:
 
46
    elif apt_pipe_value_s in [str(b) for b in range(0, 6)]:
47
47
        write_apt_snippet(apt_pipe_value_s, log, DEFAULT_FILE)
48
48
    else:
49
49
        log.warn("Invalid option for apt_pipeling: %s", apt_pipe_value)