Skip to content

Commit

Permalink
SConstruct: do not use F strings when generating braille tables manif…
Browse files Browse the repository at this point in the history
…est text due to syntax error in baskslash character use in expressions (resolved in Python 3.12)
  • Loading branch information
josephsl committed May 11, 2024
1 parent d41f11c commit b82cbfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sconstruct
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def generateManifest(source, dest):
manifest_brailleTables.append(f"[[{table}]]")
for key, val in buildVars.brailleTables[table].items():
manifest_brailleTables.append(f"{key} = {val}")
manifest += f"{'\n'.join(manifest_brailleTables)}\n"
manifest += "\n".join(manifest_brailleTables) + "\n"
with codecs.open(dest, "w", "utf-8") as f:
f.write(manifest)

Expand All @@ -211,7 +211,7 @@ def generateTranslatedManifest(source, language, out):
result_brailleTables.append(f"[[{table}]]")
# Fetch display name only.
result_brailleTables.append(f"displayName = {buildVars.brailleTables[table]["displayName"]}")
result += f"{'\n'.join(result_brailleTables)}\n"
result += "\n".join(result_brailleTables) + "\n"
with codecs.open(out, "w", "utf-8") as f:
f.write(result)

Expand Down

0 comments on commit b82cbfc

Please sign in to comment.