Skip to content

Commit 3e739db

Browse files
authored
Don't check pyarrow version anymore, no superclass (#880)
1 parent 704ed91 commit 3e739db

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

fsspec/spec.py

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import threading
55
import warnings
66
import weakref
7-
from distutils.version import LooseVersion
87
from errno import ESPIPE
98
from glob import has_magic
109
from hashlib import sha256
@@ -13,14 +12,7 @@
1312
from .config import apply_config, conf
1413
from .dircache import DirCache
1514
from .transaction import Transaction
16-
from .utils import (
17-
_unstrip_protocol,
18-
get_package_version_without_import,
19-
other_paths,
20-
read_block,
21-
stringify_path,
22-
tokenize,
23-
)
15+
from .utils import _unstrip_protocol, other_paths, read_block, stringify_path, tokenize
2416

2517
logger = logging.getLogger("fsspec")
2618

@@ -88,20 +80,7 @@ def __call__(cls, *args, **kwargs):
8880
return obj
8981

9082

91-
pa_version = get_package_version_without_import("pyarrow")
92-
if pa_version and LooseVersion(pa_version) < LooseVersion("2.0"):
93-
try:
94-
import pyarrow as pa
95-
96-
up = pa.filesystem.DaskFileSystem
97-
except ImportError: # pragma: no cover
98-
# pyarrow exists but doesn't import for some reason
99-
up = object
100-
else: # pragma: no cover
101-
up = object
102-
103-
104-
class AbstractFileSystem(up, metaclass=_Cached):
83+
class AbstractFileSystem(metaclass=_Cached):
10584
"""
10685
An abstract super-class for pythonic file-systems
10786

0 commit comments

Comments
 (0)