Fix syntax warnings for Python 3.12
https://github.com/Cantera/cantera/commit/25b52d3d1d974d8279026332340d690e42c111c5
|
|
|
130 | 130 | # Replace @key@ with the value of that key, and @@ with a single @ |
131 | 131 | ############################################################################## |
132 | 132 | |
133 | | _SubstFile_pattern = "@(?P<key>\w*?)@" |
| 133 | _SubstFile_pattern = r"@(?P<key>\w*?)@" |
134 | 134 | def _SubstFile_replace(env, mo): |
135 | 135 | key = mo.group("key") |
136 | 136 | if not key: |
… |
… |
|
167 | 167 | # other defines that you do not desire to be replaced. |
168 | 168 | ############################################################################## |
169 | 169 | |
170 | | _SubstHeader_pattern = "(?m)^(?P<space>\\s*?)(?P<type>#define|#undef)\\s+?@(?P<key>\w+?)@(?P<ending>.*?)$" |
| 170 | _SubstHeader_pattern = r"(?m)^(?P<space>\\s*?)(?P<type>#define|#undef)\\s+?@(?P<key>\w+?)@(?P<ending>.*?)$" |
171 | 171 | def _SubstHeader_replace(env, mo): |
172 | 172 | space = mo.group("space") |
173 | 173 | type = mo.group("type") |