[Fix] fix is_abs criterion error (#358)

* fix abs criterion error

* update
This commit is contained in:
ChaimZhu 2022-07-12 11:16:08 +08:00 committed by GitHub
parent 936c4ebc58
commit acd9cab25a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,7 +110,7 @@ def is_abs(path: str) -> bool:
Returns:
bool: whether path is an absolute path.
"""
if osp.isabs(path) or path.startswith(('http', 'https', 's3')):
if osp.isabs(path) or path.startswith(('http://', 'https://', 's3://')):
return True
else:
return False