From fc70f7f1a13bab5590edae885872cf7ac96a2db4 Mon Sep 17 00:00:00 2001 From: 100gle Date: Mon, 3 Jul 2023 21:48:38 +0800 Subject: [PATCH] chore: add TODO mark for legacy `os.path` and `ntpath` code --- backend/src/module/downloader/path.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/module/downloader/path.py b/backend/src/module/downloader/path.py index 30aa0400..594a2173 100644 --- a/backend/src/module/downloader/path.py +++ b/backend/src/module/downloader/path.py @@ -4,6 +4,7 @@ import re from module.conf import settings from module.models import BangumiData +# TODO: replace this logic with pathlib if ":\\" in settings.downloader.path: import ntpath as path else: