Commit f9bc2e9
ebembi-crdb
Fix f-string backslash syntax error for Python < 3.12
version.replace('.', '\.') inside an f-string {} is a SyntaxError on
Python < 3.12. Pre-compute the escaped version into a local variable
before using it in the f-string expression.1 parent 4f5fc9c commit f9bc2e9
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
64 | 67 | | |
65 | 68 | | |
66 | | - | |
| 69 | + | |
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
| |||
0 commit comments