Skip to content

Commit 3aaa409

Browse files
committed
Fix aliases_replace for Python 3.12 and before
https://docs.python.org/3/library/stdtypes.html#str.replace
1 parent 305129d commit 3aaa409

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎genisolist.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def aliases_replace(aliases: list, path: str) -> str:
123123

124124
for alias in aliases:
125125
if path.startswith(alias[0] + "/"):
126-
return path.replace(alias[0] + "/", alias[1] + "/", count=1)
126+
return path.replace(alias[0] + "/", alias[1] + "/", 1)
127127
return path
128128

129129

0 commit comments

Comments
 (0)