From acd9cab25ab3a8dfd0c233a8d6cdd78173847c9e Mon Sep 17 00:00:00 2001
From: ChaimZhu <zcm952742165@gmail.com>
Date: Tue, 12 Jul 2022 11:16:08 +0800
Subject: [PATCH] [Fix] fix `is_abs` criterion error (#358)

* fix abs criterion error

* update
---
 mmengine/utils/path.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mmengine/utils/path.py b/mmengine/utils/path.py
index c1228f13..b08feb7d 100644
--- a/mmengine/utils/path.py
+++ b/mmengine/utils/path.py
@@ -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
-- 
GitLab