Skip to content

Commit 92aaf00

Browse files
authored
Merge pull request #8 from Noah-Jaffe/Noah-Jaffe-patch-1
bugfix, fstring incompatible with some versions of python
2 parents 32af744 + b2c0064 commit 92aaf00

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)