~bbaqar/charms/trusty/neutron-api-plumgrid/temp

« back to all changes in this revision

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

  • Committer: bbaqar at plumgrid
  • Date: 2016-04-25 09:05:55 UTC
  • mfrom: (18.1.7 neutron-api-plumgrid)
  • Revision ID: bbaqar@plumgrid.com-20160425090555-yl82ba6bhwjqkwr9
Merge: Liberty/Mitaka support

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