MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / ftp_get

Function ftp_get

tools/test-my-pr.py:27–34  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

25
26
27def ftp_get(url):
28 try:
29 response = requests.get(url, timeout=300)
30 response.raise_for_status()
31 return response.content
32 except requests.RequestException as err:
33 print('Failed to fetch {}: {}'.format(url, err))
34 return None
35
36
37def latestvername(names):

Callers 1

getpackagesFunction · 0.85

Calls 2

formatMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected