Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pydrive2/fs/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
import threading
from collections import defaultdict
from contextlib import contextmanager
from itertools import chain

from fsspec.spec import AbstractFileSystem
from funcy import cached_property, retry, wrap_prop, wrap_with
from funcy.py3 import cat
from tqdm.utils import CallbackIOWrapper

from pydrive2.drive import GoogleDrive
Expand Down Expand Up @@ -314,7 +314,7 @@ def _gdrive_list(self, query):
get_list = _gdrive_retry(lambda: next(file_list, None))

# Fetch pages until None is received, lazily flatten the thing.
return cat(iter(get_list, None))
return chain.from_iterable(iter(get_list, None))

def _gdrive_list_ids(self, query_ids):
query = " or ".join(
Expand Down