From f84a7f4c7e1ec50d0a65f001e48dd4d8ff10351c Mon Sep 17 00:00:00 2001 From: PMheart <17109513+PMheart@users.noreply.github.com> Date: Mon, 29 Aug 2022 09:12:55 +0200 Subject: [PATCH] Fix Prospector warnings --- uncstrap/uncstrap.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uncstrap/uncstrap.py b/uncstrap/uncstrap.py index 5e5902f..461f1ed 100755 --- a/uncstrap/uncstrap.py +++ b/uncstrap/uncstrap.py @@ -127,7 +127,7 @@ def build_uncrustify(url): def download_uncrustify_conf(): - response = requests.get('https://raw.githubusercontent.com/acidanthera/ocbuild/master/uncstrap/configs/' + UNC_CONF) + response = requests.get('https://raw.githubusercontent.com/acidanthera/ocbuild/master/uncstrap/configs/' + UNC_CONF, timeout=5) with open(UNC_CONF, 'wb') as conf: conf.write(response.content) @@ -137,10 +137,10 @@ def download_uncrustify_bin(): if os.path.isfile(zip_name): os.remove(zip_name) - response = requests.get('https://raw.githubusercontent.com/acidanthera/ocbuild/master/external/' + zip_name) + response = requests.get('https://raw.githubusercontent.com/acidanthera/ocbuild/master/external/' + zip_name, timeout=5) real_filename = response.text - response = requests.get('https://raw.githubusercontent.com/acidanthera/ocbuild/master/external/' + real_filename) + response = requests.get('https://raw.githubusercontent.com/acidanthera/ocbuild/master/external/' + real_filename, timeout=5) with open(zip_name, 'wb') as archive: archive.write(response.content)