mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-05 03:50:57 +08:00
fix pylint error
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user