Skip to content

Commit ae164ca

Browse files
authored
fs: use itertools.chain.from_iterable instead of funcy.py3.cat
Similar to iterative/dvc#9279
1 parent b27e3ed commit ae164ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pydrive2/fs/spec.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
import threading
88
from collections import defaultdict
99
from contextlib import contextmanager
10+
from itertools import chain
1011

1112
from fsspec.spec import AbstractFileSystem
1213
from funcy import cached_property, retry, wrap_prop, wrap_with
13-
from funcy.py3 import cat
1414
from tqdm.utils import CallbackIOWrapper
1515

1616
from 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(

0 commit comments

Comments
 (0)