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 77import threading
88from collections import defaultdict
99from contextlib import contextmanager
10+ from itertools import chain
1011
1112from fsspec .spec import AbstractFileSystem
1213from funcy import cached_property , retry , wrap_prop , wrap_with
13- from funcy .py3 import cat
1414from tqdm .utils import CallbackIOWrapper
1515
1616from pydrive2 .drive import GoogleDrive
@@ -314,7 +314,7 @@ def _gdrive_list(self, query):
314314 get_list = _gdrive_retry (lambda : next (file_list , None ))
315315
316316 # 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 ))
318318
319319 def _gdrive_list_ids (self , query_ids ):
320320 query = " or " .join (
You can’t perform that action at this time.
0 commit comments