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.
1 parent dc5e9fa commit 57e91abCopy full SHA for 57e91ab
zarr/storage.py
@@ -29,7 +29,7 @@
29
import zipfile
30
from collections import OrderedDict
31
from collections.abc import MutableMapping
32
-from os import scandir
+from os import scandir, replace
33
from pickle import PicklingError
34
from threading import Lock, RLock
35
import uuid
@@ -65,15 +65,6 @@
65
from zarr.codecs import Zlib
66
default_compressor = Zlib()
67
68
-# Find which function to use for atomic replace
69
-if sys.version_info >= (3, 3):
70
- from os import replace
71
-elif sys.platform == "win32": # pragma: no cover
72
- from osreplace import replace
73
-else: # pragma: no cover
74
- # POSIX rename() is always atomic
75
- from os import rename as replace
76
-
77
78
def _path_to_prefix(path):
79
# assume path already normalized
0 commit comments