~cjwatson/charms/xenial/storage/fix-nfs

Viewing all changes in revision 43.

  • Committer: Colin Watson
  • Date: 2018-12-17 14:08:02 UTC
  • Revision ID: cjwatson@canonical.com-20181217140802-sw00mo3psos1vh50
Port to Python 3.

This should be safe on >= trusty, as cloud images contain python3, and
charm-helpers will bootstrap the rest as long as the hook #! line works.

I dropped unicode() from the data persistence functions, as it's
unnecessary: on Python 2 a file opened with "w" will accept str writes, and
on Python 3 json.dumps always returns str rather than bytes.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: