Skip to content

Commit 52a146b

Browse files
committed
remove fsspec open
1 parent 8e814cc commit 52a146b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

wfdb/io/download.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ def _stream_header(file_name: str, pn_dir: str) -> str:
110110
url = posixpath.join(config.db_index_url, pn_dir, file_name)
111111

112112
# Get the content of the remote file
113-
with fsspec.open(url, "rb") as f:
113+
# with fsspec.open(url, "rb") as f:
114+
with open(url, "rb") as f:
114115
content = f.read()
115116

116117
return content.decode("iso-8859-1")

wfdb/io/record.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1840,7 +1840,8 @@ def rdheader(record_name, pn_dir=None, rd_segments=False):
18401840
# Read the local or remote header file.
18411841
file_name = f"{base_record_name}.hea"
18421842
if pn_dir is None:
1843-
with fsspec.open(
1843+
# with fsspec.open(
1844+
with open(
18441845
os.path.join(dir_name, file_name),
18451846
"r",
18461847
encoding="ascii",

0 commit comments

Comments
 (0)