This commit is contained in:
dachshund 2013-11-28 10:59:07 -05:00
parent 56a4a44785
commit 4eeb8575de

View file

@ -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