Update minimum Python version to 3.11

This commit is contained in:
I-Al-Istannen
2025-04-14 21:13:25 +02:00
parent f6bdeb6b9d
commit 1a430ad5d1
9 changed files with 15 additions and 26 deletions

View File

@ -149,9 +149,7 @@ class CrawlerSection(Section):
return self.s.getboolean("skip", fallback=False)
def output_dir(self, name: str) -> Path:
# TODO Use removeprefix() after switching to 3.9
if name.startswith("crawl:"):
name = name[len("crawl:"):]
name = name.removeprefix("crawl:")
return Path(self.s.get("output_dir", name)).expanduser()
def redownload(self) -> Redownload: