Add docstring to example
This commit is contained in:
parent
cf3676f461
commit
1664aa8010
@ -8,6 +8,10 @@ from FAAPI import FAAPI
|
||||
|
||||
|
||||
def download(url: str):
|
||||
"""
|
||||
Downloads the file at the given URL.
|
||||
@param url: URL of the file to download.
|
||||
"""
|
||||
print('Downloading ' + url)
|
||||
with open(url.split('/')[-1], 'wb') as file:
|
||||
res = requests.get(url)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user