Skip to content

Commit becf2b9

Browse files
committed
bugfix: wrong separator used
Using os.sep on windows fails here because we are searching for "/" as a separator
1 parent 2cdb44a commit becf2b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wfdb/io/record.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3049,7 +3049,7 @@ def dl_database(
30493049
for rec in record_list:
30503050
print("Generating record list for: " + rec)
30513051
# May be pointing to directory
3052-
if rec.endswith(os.sep):
3052+
if rec.endswith("/"):
30533053
nested_records += [
30543054
posixpath.join(rec, sr)
30553055
for sr in download.get_record_list(posixpath.join(db_dir, rec))

0 commit comments

Comments
 (0)