From d0b84d5696746239e420bfe8b1d5271a887c1733 Mon Sep 17 00:00:00 2001 From: Linlang Date: Thu, 23 May 2024 16:21:54 +0800 Subject: [PATCH] fix pylint error --- qlib/tests/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qlib/tests/data.py b/qlib/tests/data.py index d58d58bb0..7fedb56d0 100644 --- a/qlib/tests/data.py +++ b/qlib/tests/data.py @@ -42,7 +42,7 @@ class GetData: target_path: str The location where the data is saved, including the file name. """ - file_name = str(target_path).split("/")[-1] + file_name = str(target_path).rsplit("/", maxsplit=1)[-1] resp = requests.get(url, stream=True, timeout=60) resp.raise_for_status() if resp.status_code != 200: