[ET Trac] #2760: SyntaxWarnings Raised During Build Process with Python 3.12
Steven R. Brandt
trac-noreply at einsteintoolkit.org
Tue Apr 16 09:32:02 CDT 2024
#2760: SyntaxWarnings Raised During Build Process with Python 3.12
Reporter: Thiago Assumpcao
Status: new
Milestone:
Version: ET_2023_05
Type: bug
Priority: major
Component: SimFactory
Comment (by Steven R. Brandt):
The main problem seems to be the ini parser in 3.12. It complains about things like this:
```
submitpattern = 'Submitted batch job (\d+)'
```
The problem is that a `\d` is invalid inside a quoted string. To fix it, replace it with
```
submitpattern = 'Submitted batch job (\\d+)'
```
or
```
submitpattern = Submitted batch job (\d+)
```
Both seem to work.
There are also some problems with a few strings inside simfactory that need to be r-strings.
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2760/syntaxwarnings-raised-during-build-process
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.einsteintoolkit.org/pipermail/trac/attachments/20240416/2180d3f8/attachment.htm>
More information about the Trac
mailing list