Skip to content

Commit

Permalink
Remove unnecessary wrapping of path
Browse files Browse the repository at this point in the history
  • Loading branch information
algomaster99 committed Nov 2, 2019
1 parent d454cb8 commit cffc9c8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ neatlynx/__pycache__
cache
*.pyc
.env/
.env2.7/

cache
.dvc.conf.lock
Expand Down
1 change: 0 additions & 1 deletion dvc/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,6 @@ def save(self, path_info, checksum):
"""
assert path_info.scheme == "local"
assert checksum is not None

assert os.path.exists(fspath_py35(path_info))

actual_mtime, actual_size = get_mtime_and_size(
Expand Down
2 changes: 1 addition & 1 deletion dvc/utils/fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_mtime_and_size(path, dvcignore):
files_mtimes = {}
for file_path in walk_files(path, dvcignore):
try:
stat = os.stat(fspath_py35(file_path))
stat = os.stat(file_path)
except OSError as exc:
# NOTE: broken symlink case.
if exc.errno != errno.ENOENT:
Expand Down

0 comments on commit cffc9c8

Please sign in to comment.