Make script compatible with earlier versions of Python
This commit is contained in:
parent
8770c691e6
commit
95b8b123d7
@ -26,7 +26,7 @@ def replace_links(path: Path, replacements: Dict[str, str]):
|
|||||||
|
|
||||||
|
|
||||||
def main(path: Path):
|
def main(path: Path):
|
||||||
replacements: Dict[str, str] = {}
|
replacements = {}
|
||||||
for p in path.glob("**/*.html"):
|
for p in path.glob("**/*.html"):
|
||||||
if str(p.parent) == ".":
|
if str(p.parent) == ".":
|
||||||
# Don't convert top-level files.
|
# Don't convert top-level files.
|
||||||
|
Loading…
Reference in New Issue
Block a user