Skip to content

Commit 9642419

Browse files
Merge remote-tracking branch 'upstream/hotfixes' into release
2 parents 4c7c4b6 + 3e492f7 commit 9642419

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pm4py/read.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
from typing import Tuple, Dict, Optional, Union
2323
import os
2424

25-
# NEW IMPORTS FOR URI SUPPORT
26-
import requests
2725
import tempfile
2826
import importlib.util
2927
from urllib.parse import urlparse
@@ -56,6 +54,7 @@ def _resolve_path(file_path: str) -> str:
5654
"""
5755
parsed = urlparse(file_path)
5856
if parsed.scheme in ("http", "https"):
57+
import requests
5958
response = requests.get(file_path)
6059
response.raise_for_status()
6160
# Infer the file extension from the URL (if available)

0 commit comments

Comments
 (0)