~chris-gondolin/charms/trusty/keystone/ldap-fixes

« back to all changes in this revision

Viewing changes to charmhelpers/fetch/archiveurl.py

  • Committer: Edward Hope-Morley
  • Date: 2016-01-08 14:33:27 UTC
  • mfrom: (196 stable.remote)
  • mto: This revision was merged to the branch mainline in revision 197.
  • Revision ID: edward.hope-morley@canonical.com-20160108143327-czj7dusywrbuqz66
sync /next

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):