Skip to content

Commit c7a08f4

Browse files
implementing suggestion part 2
1 parent 1a36d1f commit c7a08f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mne_bids/write.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ def _participants_tsv(raw, subject_id, fname, overwrite=False):
575575
data[key] = new_value
576576

577577
fpath = Path(fname)
578-
with _open_lock(fpath, encoding="utf-8"):
578+
with _open_lock(fpath):
579579
if fpath.exists():
580580
orig_data = _from_tsv(fname)
581581
# If we read an empty OrderedDict, it means
@@ -798,7 +798,7 @@ def _scans_tsv(raw, raw_fname, fname, keep_source, overwrite=False):
798798
_write_json(sidecar_json_path, sidecar_json)
799799

800800
fpath = Path(fname)
801-
with _open_lock(fpath, encoding="utf-8"):
801+
with _open_lock(fpath):
802802
if fpath.exists():
803803
orig_data = _from_tsv(fname)
804804
# if the file name is already in the file raise an error

0 commit comments

Comments
 (0)