From a42a1ffd2a6c0d2683b6348188647dccdf312dbe Mon Sep 17 00:00:00 2001 From: Tom Gillespie Date: Fri, 10 Jul 2020 04:30:19 -0700 Subject: [PATCH] fix check for _api_class, and version bump check needs to be on remote not self for cache this needs a test since all tests are green but this was broken --- augpathlib/__init__.py | 2 +- augpathlib/caches.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/augpathlib/__init__.py b/augpathlib/__init__.py index 3bc32d6..a519141 100644 --- a/augpathlib/__init__.py +++ b/augpathlib/__init__.py @@ -51,4 +51,4 @@ class RepoPath(RepoHelper): 'RemotePath', ] -__version__ = '0.0.19' +__version__ = '0.0.20' diff --git a/augpathlib/caches.py b/augpathlib/caches.py index d6f87b3..b00f5e9 100644 --- a/augpathlib/caches.py +++ b/augpathlib/caches.py @@ -550,7 +550,7 @@ def remote(self): self._remote_class = self._remote_class_factory(anchor, self.local_class) - if (hasattr(self, '_api_class') and + if (hasattr(self._remote_class, '_api_class') and not hasattr(self._remote_class, '_api')): # FIXME SIGH this should be one shot not a hasattr check # every first time we have to get the remote for a cache