From fdba79c5198babae1b7a6c8ac8c42ac741a3be12 Mon Sep 17 00:00:00 2001 From: Dimitar Todorov Date: Mon, 15 Nov 2021 16:19:10 +0200 Subject: [PATCH] change method override to call super instead of repeating the calls --- dvc/fs/http.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dvc/fs/http.py b/dvc/fs/http.py index 785f5f1e32..dbe386d221 100644 --- a/dvc/fs/http.py +++ b/dvc/fs/http.py @@ -138,5 +138,4 @@ def put_file( **kwargs, ) -> None: kwargs.setdefault("method", self.upload_method) - self.fs.put_file(from_file, to_info, callback=callback, **kwargs) - self.fs.invalidate_cache(self.path.parent(to_info)) + super().put_file(from_file, to_info, callback=callback, **kwargs)