From 5680c9211f2252bd0aa96c3c10fd14efbb6d602b Mon Sep 17 00:00:00 2001 From: Joey Payne Date: Wed, 27 Apr 2016 21:42:50 -0600 Subject: [PATCH] Fix #132: Python 2 getheaders should be Python 3 get_all --- command_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command_line.py b/command_line.py index 98682f8..0ef5480 100644 --- a/command_line.py +++ b/command_line.py @@ -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)