Skip to content

Commit b2c0064

Browse files
authored
bugfix, fstring incompatible with some versions of python
1 parent 32af744 commit b2c0064

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DataMapping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def __to_file__(self, file_path: str, allow_overwrite: bool = True) -> Path:
120120

121121
name, ext = fp.parts[-1].rsplit('.', 1)
122122
if not allow_overwrite and fp.exists():
123-
as_fn = lambda p, n, e, i: Path(p.parent, f"{n}{"." + encode_int(i) if i else ''}{'.' + e if e else ''}")
123+
as_fn = lambda p, n, e, i: Path(p.parent, f"{n}{'.' + encode_int(i) if i else ''}{'.' + e if e else ''}")
124124
num = 0
125125
name, ext = fp.parts[-1].rsplit('.', 1)
126126
new_fp = as_fn(fp, name, ext, num)

0 commit comments

Comments
 (0)