File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 7
7
import threading
8
8
from collections import defaultdict
9
9
from contextlib import contextmanager
10
+ from itertools import chain
10
11
11
12
from fsspec .spec import AbstractFileSystem
12
13
from funcy import cached_property , retry , wrap_prop , wrap_with
13
- from funcy .py3 import cat
14
14
from tqdm .utils import CallbackIOWrapper
15
15
16
16
from pydrive2 .drive import GoogleDrive
@@ -314,7 +314,7 @@ def _gdrive_list(self, query):
314
314
get_list = _gdrive_retry (lambda : next (file_list , None ))
315
315
316
316
# Fetch pages until None is received, lazily flatten the thing.
317
- return cat (iter (get_list , None ))
317
+ return chain . from_iterable (iter (get_list , None ))
318
318
319
319
def _gdrive_list_ids (self , query_ids ):
320
320
query = " or " .join (
You can’t perform that action at this time.
0 commit comments