mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
Fix #139.
This commit is contained in:
parent
56a4a44785
commit
4eeb8575de
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ def open(self, url, data=None):
|
|||
filename, headers = self.retrieve(url, data=data)
|
||||
|
||||
# TODO: like tempfile, ensure file is deleted when closed?
|
||||
temporary_file = open(filename)
|
||||
temporary_file = open(filename, 'rb')
|
||||
|
||||
# extend temporary_file with info(), getcode(), geturl()
|
||||
# http://docs.python.org/2/library/urllib.html#urllib.urlopen
|
||||
|
|
|
|||
Loading…
Reference in a new issue