We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
if
1 parent 5cb5593 commit 77f48e8Copy full SHA for 77f48e8
1 file changed
asv_bench/benchmarks/dataset_io.py
@@ -678,13 +678,7 @@ def open(
678
lock: xr.backends.locks.SerializableLock | None = None,
679
autoclose: bool = False,
680
):
681
- if lock is None:
682
- if mode == "r":
683
- locker = xr.backends.locks.SerializableLock()
684
- else:
685
686
687
- locker = lock
+ locker = lock or xr.backends.locks.SerializableLock()
688
689
manager = xr.backends.CachingFileManager(
690
xr.backends.DummyFileManager,
0 commit comments