Make script compatible with earlier versions of Python

This commit is contained in:
Stavros Korokithakis 2021-11-20 17:50:32 +02:00
parent 8770c691e6
commit 95b8b123d7
No known key found for this signature in database
GPG Key ID: 26EA345ECD4C2A63

View File

@ -26,7 +26,7 @@ def replace_links(path: Path, replacements: Dict[str, str]):
def main(path: Path):
replacements: Dict[str, str] = {}
replacements = {}
for p in path.glob("**/*.html"):
if str(p.parent) == ".":
# Don't convert top-level files.