mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-19 23:11:44 +01:00
istextfile: move to dvc.objects
This commit is contained in:
committed by
Ruslan Kuprieiev
parent
4add88f627
commit
e585c52187
+1
-1
@@ -16,6 +16,7 @@ from dvc.exceptions import (
|
||||
RemoteCacheRequiredError,
|
||||
)
|
||||
from dvc.objects.hash_info import HashInfo
|
||||
from dvc.objects.istextfile import istextfile
|
||||
from dvc.objects.meta import Meta
|
||||
|
||||
from .data import check as ocheck
|
||||
@@ -29,7 +30,6 @@ from .fs.base import RemoteMissingDepsError
|
||||
from .fs.hdfs import HDFSFileSystem
|
||||
from .fs.local import LocalFileSystem
|
||||
from .fs.s3 import S3FileSystem
|
||||
from .istextfile import istextfile
|
||||
from .objects.errors import ObjectFormatError
|
||||
from .scheme import Schemes
|
||||
from .utils import relpath
|
||||
|
||||
@@ -43,7 +43,7 @@ def _fobj_md5(fobj, hash_md5, binary, progress_func=None):
|
||||
|
||||
def file_md5(fname, fs):
|
||||
"""get the (md5 hexdigest, md5 digest) of a file"""
|
||||
from dvc.istextfile import istextfile
|
||||
from dvc.objects.istextfile import istextfile
|
||||
from dvc.progress import Tqdm
|
||||
|
||||
hash_md5 = hashlib.md5()
|
||||
|
||||
+1
-1
@@ -3,8 +3,8 @@ import io
|
||||
|
||||
from funcy import cached_property
|
||||
|
||||
from dvc.istextfile import DEFAULT_CHUNK_SIZE, istextblock
|
||||
from dvc.objects.hash_info import HashInfo
|
||||
from dvc.objects.istextfile import DEFAULT_CHUNK_SIZE, istextblock
|
||||
from dvc.utils import dos2unix
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import pytest
|
||||
|
||||
from dvc.fs.local import LocalFileSystem
|
||||
from dvc.istextfile import DEFAULT_CHUNK_SIZE, istextfile
|
||||
from dvc.objects.istextfile import DEFAULT_CHUNK_SIZE, istextfile
|
||||
from dvc.utils import file_md5
|
||||
from dvc.utils.stream import HashedStreamReader
|
||||
|
||||
|
||||
Reference in New Issue
Block a user