1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-16 09:11:00 +08:00

fix pylint error

This commit is contained in:
Linlang
2024-05-23 16:21:54 +08:00
parent fb54d08236
commit d0b84d5696

View File

@@ -42,7 +42,7 @@ class GetData:
target_path: str target_path: str
The location where the data is saved, including the file name. 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 = requests.get(url, stream=True, timeout=60)
resp.raise_for_status() resp.raise_for_status()
if resp.status_code != 200: if resp.status_code != 200: