Skip to content

Commit

Permalink
Fix Prospector warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
PMheart committed Aug 29, 2022
1 parent bdfdb21 commit f84a7f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions uncstrap/uncstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)

Expand Down

0 comments on commit f84a7f4

Please sign in to comment.