Skip to content

Commit

Permalink
Fix #132: Python 2 getheaders should be Python 3 get_all
Browse files Browse the repository at this point in the history
  • Loading branch information
jyapayne committed Apr 28, 2016
1 parent 3e4d322 commit 5680c92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@ def download_file(self, path, setting):
web_file = request.urlopen(url)
f = open(tmp_file, 'ab')
meta = web_file.info()
file_size = tmp_size + int(meta.getheaders("Content-Length")[0])
file_size = tmp_size + int(meta.get_all("Content-Length")[0])

version = self.selected_version()
version_file = self.settings['base_url'].format(version)
Expand Down

0 comments on commit 5680c92

Please sign in to comment.