From 0dd38b4f701117b9c6fb9c2adc483a2a784f352e Mon Sep 17 00:00:00 2001 From: laughingman7743 Date: Sun, 29 Dec 2024 15:14:33 +0900 Subject: [PATCH] fixup --- pyathena/filesystem/s3.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pyathena/filesystem/s3.py b/pyathena/filesystem/s3.py index acbd1b70..2c8982ac 100644 --- a/pyathena/filesystem/s3.py +++ b/pyathena/filesystem/s3.py @@ -427,13 +427,11 @@ def _find( bucket, key, _ = self.parse_path(path) prefix = kwargs.pop("prefix", "") if maxdepth: - return super().find( - path=path, - maxdepth=maxdepth, - withdirs=withdirs, - detail=True, - **kwargs - ).values() + return ( + super() + .find(path=path, maxdepth=maxdepth, withdirs=withdirs, detail=True, **kwargs) + .values() + ) files = self._ls_dirs(path, prefix=prefix, delimiter="") if not files and key: