charm-tools is not python3 compatible
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juju Charm Tools |
Triaged
|
Low
|
Unassigned |
Bug Description
The tools are not always ptyhon3 compatible. trusty will be the first lts that does not ship python2 by default. Authors can install python 2 to use these tools of course.
$ python3 /usr/bin/pocketlint -q `find . -name '*.py'`
./charmtools/
171: Could not compile; invalid syntax: except Exception, error:
./charmtools/
178: Could not compile; invalid syntax: print msg
./charmtools/
77: Could not compile; invalid syntax: print "Connecting to launchpad..."
./charmtools/
161: Could not compile; invalid syntax: except (BadRequest, NotFound), e:
./charmtools/
74: Could not compile; invalid syntax: print "Found " + package + " package in apt cache, as a result " \
./charmtools/
29: Could not compile; invalid syntax: print "\n".join(
./charmtools/
81: undefined name 'raw_input'
./charmtools/
38: Could not compile; invalid syntax: print '\n'.join(matches)
./charmtools/mr.py
19: 'errors' imported but unused
./charmtools/
2: 'sys' imported but unused
./ez_setup.py
122: Could not compile; invalid syntax: except pkg_resources.
./setup.py
12: 'find_packages' imported but unused
6: 'sys' imported but unused
Changed in charm-tools: | |
milestone: | none → 1.3.0 |
Changed in charm-tools: | |
milestone: | 1.3.0 → 1.4.0 |