~charm-helpers/charm-helpers/devel

« back to all changes in this revision

Viewing changes to charmhelpers/contrib/openstack/context.py

  • Committer: Stuart Bishop
  • Date: 2014-11-25 16:06:34 UTC
  • mfrom: (158.2.46 fix-configure_sources)
  • Revision ID: stuart@stuartbishop.net-20141125160634-wo9uarwrv20ew23y
[stub, r=niedbalski,tvansteenburgh] The Return of Python 3 Support

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
from subprocess import check_call
6
6
 
7
7
import six
8
 
from six.moves import xrange
9
8
 
10
9
from charmhelpers.fetch import (
11
10
    apt_install,
99
98
    split = config_flags.strip(' =').split('=')
100
99
    limit = len(split)
101
100
    flags = {}
102
 
    for i in xrange(0, limit - 1):
 
101
    for i in range(0, limit - 1):
103
102
        current = split[i]
104
103
        next = split[i + 1]
105
104
        vindex = next.rfind(',')