Skip to content

Commit

Permalink
[Hotfix] requests is not builtin anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
DominiqueMakowski committed Dec 18, 2023
1 parent 4eff069 commit 79b4888
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions neurokit2/data/database.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import pathlib
import urllib.parse
import urllib
import zipfile

import requests


def download_from_url(url, destination_path=None):
"""**Download Files from URLs**
Expand All @@ -26,7 +24,7 @@ def download_from_url(url, destination_path=None):
destination_path = _download_path_sanitize(url, destination_path)

# Download the file
response = requests.get(url)
response = urllib.request.urlopen(url)

if response.status_code == 200:
with destination_path.open("wb") as file:
Expand Down

0 comments on commit 79b4888

Please sign in to comment.