Skip to content

Commit 48103c4

Browse files
committed
make accessor interchangeable
1 parent 8d47ea8 commit 48103c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

upath/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ class UniversalPath(UPath, PureUniversalPath):
149149
"owner",
150150
"readlink",
151151
]
152+
_default_accessor = _FSSpecAccessor
152153

153154
def _init(self, *args, template=None, **kwargs):
154155
self._closed = False
@@ -168,7 +169,7 @@ def _init(self, *args, template=None, **kwargs):
168169
if template is not None:
169170
self._accessor = template._accessor
170171
else:
171-
self._accessor = _FSSpecAccessor(self._url, *args, **kwargs)
172+
self._accessor = self._default_accessor(self._url, *args, **kwargs)
172173
self.fs = self._accessor._fs
173174

174175
def __getattribute__(self, item):

0 commit comments

Comments
 (0)