Skip to content

Commit b457c19

Browse files
committed
properly credit the SO answer
1 parent c5d1490 commit b457c19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

xarray/tutorial.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def check_md5sum(content, checksum):
3636

3737

3838
def download_to(url, path):
39+
# based on https://stackoverflow.com/a/39217788
3940
with path.open("wb") as f:
4041
with requests.get(url, stream=True) as r:
4142
if r.status_code != 200:

0 commit comments

Comments
 (0)