~andrewjbeach/juju-ci-tools/get-juju-dict

« back to all changes in this revision

Viewing changes to industrial_test.py

  • Committer: Curtis Hovey
  • Date: 2015-05-18 18:41:02 UTC
  • mto: This revision was merged to the branch mainline in revision 957.
  • Revision ID: curtis@canonical.com-20150518184102-1rz340oezi7timqi
Hush py3 lint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
 
2
from __future__ import print_function
 
3
 
 
4
 
2
5
__metaclass__ = type
3
6
 
4
7
from argparse import ArgumentParser
485
488
 
486
489
    def add_hook(self, hooks_path, hook_name, hook_contents):
487
490
        with open(os.path.join(hooks_path, hook_name), 'w') as f:
488
 
            os.fchmod(f.fileno(), 0755)
 
491
            os.fchmod(f.fileno(), 0o755)
489
492
            f.write(hook_contents)
490
493
 
491
494
 
804
807
        try:
805
808
            for stage in stages:
806
809
                for step in stage.factory(upgrade_sequence).iter_steps(client):
807
 
                    print step
 
810
                    print(step)
808
811
        except BaseException as e:
809
812
            logging.exception(e)
810
813
            client.destroy_environment()