~ost-maintainers/mojo/py3

« back to all changes in this revision

Viewing changes to mojo/workspace.py

  • Committer: Chris MacNaughton
  • Date: 2018-01-19 07:08:26 UTC
  • mfrom: (462.1.4 mojo3)
  • Revision ID: chris.macnaughton@canonical.com-20180119070826-qg4finno09l6kh16
[chris.macnaughton, r=1chb1n]  Updating functions to py3

This MP covers:

- items -> iteritems
- print -> print()
- running 2to3

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
 
62
62
    def clean(self):
63
63
        "Reset the workspace"
64
 
        map(shutil.rmtree, (d for d in self.all_dirs if os.path.exists(d)))
 
64
        list(map(shutil.rmtree, (d for d in self.all_dirs if os.path.exists(d))))
65
65
        return self.prepare()
66
66
 
67
67
    def delete(self):