From 7eccbff5ef5381f3c9355df8d88938e5e76fa87c Mon Sep 17 00:00:00 2001 From: Martin Durant Date: Mon, 22 Apr 2019 10:20:26 -0400 Subject: [PATCH] Fixes #145 Fixes #146 --- gcsfs/dask_link.py | 2 +- gcsfs/mapping.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/gcsfs/dask_link.py b/gcsfs/dask_link.py index 818175a1..138c0fb9 100644 --- a/gcsfs/dask_link.py +++ b/gcsfs/dask_link.py @@ -85,7 +85,7 @@ def isfile(self, path): except OSError: return False - def walk(self, path, refresh=False): + def walk(self, path, refresh=False, maxdepth=5): """ Directory tree generator, like os.walk diff --git a/gcsfs/mapping.py b/gcsfs/mapping.py index 727d6555..54ff57e4 100644 --- a/gcsfs/mapping.py +++ b/gcsfs/mapping.py @@ -67,7 +67,6 @@ def __getitem__(self, key): return self.gcs.cat(key) except (IOError, OSError): raise KeyError(key) - return result def __setitem__(self, key, value): key = self._key_to_str(key)