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 b27e3ed commit ae164caCopy full SHA for ae164ca
pydrive2/fs/spec.py
@@ -7,10 +7,10 @@
7
import threading
8
from collections import defaultdict
9
from contextlib import contextmanager
10
+from itertools import chain
11
12
from fsspec.spec import AbstractFileSystem
13
from funcy import cached_property, retry, wrap_prop, wrap_with
-from funcy.py3 import cat
14
from tqdm.utils import CallbackIOWrapper
15
16
from pydrive2.drive import GoogleDrive
@@ -314,7 +314,7 @@ def _gdrive_list(self, query):
314
get_list = _gdrive_retry(lambda: next(file_list, None))
315
316
# Fetch pages until None is received, lazily flatten the thing.
317
- return cat(iter(get_list, None))
+ return chain.from_iterable(iter(get_list, None))
318
319
def _gdrive_list_ids(self, query_ids):
320
query = " or ".join(
0 commit comments