From 113a4f53a9e06e299629fc22f4e1b5d38e85f42d Mon Sep 17 00:00:00 2001 From: Amy Wang Date: Wed, 30 Oct 2024 17:22:41 -0400 Subject: [PATCH] add is not none --- gcsfs/core.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gcsfs/core.py b/gcsfs/core.py index 6fd05eae..cd5c0009 100644 --- a/gcsfs/core.py +++ b/gcsfs/core.py @@ -1,6 +1,7 @@ """ Google Cloud Storage pythonic interface """ + import asyncio import io import json @@ -142,8 +143,9 @@ def _coalesce_generation(*args): generations.remove(None) if len(generations) > 1: raise ValueError( - "Cannot coalesce generations where more than one are defined," - " {}".format(generations) + "Cannot coalesce generations where more than one are defined," " {}".format( + generations + ) ) elif len(generations) == 0: return None @@ -285,7 +287,7 @@ def __init__( version_aware=False, **kwargs, ): - if cache_timeout: + if cache_timeout is not None: kwargs["listings_expiry_time"] = cache_timeout super().__init__( self,