~openstack-charmers-next/charms/wily/odl-controller/trunk

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/fetch/archiveurl.py

  • Committer: Gerrit Code Review
  • Author(s): Jenkins
  • Date: 2016-03-18 16:10:08 UTC
  • mfrom: (21.1.1 trunk)
  • Revision ID: review@openstack.org-20160318161008-grzlrlzei667shdd
Merge "Add support for Ubuntu Xenial"

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
                install_opener(opener)
109
109
        response = urlopen(source)
110
110
        try:
111
 
            with open(dest, 'w') as dest_file:
 
111
            with open(dest, 'wb') as dest_file:
112
112
                dest_file.write(response.read())
113
113
        except Exception as e:
114
114
            if os.path.isfile(dest):