mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
fix linter issue
This commit is contained in:
committed by
skshetry
parent
b5c28dd9f9
commit
0c5a18513c
+4
-4
@@ -164,11 +164,11 @@ class _DataFileSystem(AbstractFileSystem): # pylint:disable=abstract-method
|
||||
ret["type"] = "directory"
|
||||
return ret
|
||||
|
||||
def get_file(self, rpath, lpath, callback=DEFAULT_CALLBACK, **kwargs):
|
||||
def get_file( # pylint: disable=arguments-differ
|
||||
self, rpath, lpath, callback=DEFAULT_CALLBACK, **kwargs
|
||||
):
|
||||
fs, path = self._get_fs_path(rpath)
|
||||
fs.get_file( # pylint: disable=protected-access
|
||||
path, lpath, callback=callback, **kwargs
|
||||
)
|
||||
fs.get_file(path, lpath, callback=callback, **kwargs)
|
||||
|
||||
def checksum(self, path):
|
||||
info = self.info(path)
|
||||
|
||||
+5
-8
@@ -375,22 +375,19 @@ class _DvcFileSystem(AbstractFileSystem): # pylint:disable=abstract-method
|
||||
|
||||
return infos
|
||||
|
||||
def get_file(self, rpath, lpath, callback=DEFAULT_CALLBACK, **kwargs):
|
||||
def get_file( # pylint: disable=arguments-differ
|
||||
self, rpath, lpath, callback=DEFAULT_CALLBACK, **kwargs
|
||||
):
|
||||
fs, fs_path, dvc_fs, dvc_path = self._get_fs_pair(rpath)
|
||||
|
||||
if fs:
|
||||
try:
|
||||
fs.get_file( # pylint: disable=protected-access
|
||||
fs_path, lpath, callback=callback, **kwargs
|
||||
)
|
||||
fs.get_file(fs_path, lpath, callback=callback, **kwargs)
|
||||
return
|
||||
except FileNotFoundError:
|
||||
if not dvc_fs:
|
||||
raise
|
||||
|
||||
dvc_fs.get_file( # pylint: disable=protected-access
|
||||
dvc_path, lpath, callback=callback, **kwargs
|
||||
)
|
||||
dvc_fs.get_file(dvc_path, lpath, callback=callback, **kwargs)
|
||||
|
||||
def info(self, path, **kwargs):
|
||||
fs, fs_path, dvc_fs, dvc_path = self._get_fs_pair(path)
|
||||
|
||||
Reference in New Issue
Block a user