You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "jainankitk (via GitHub)" <gi...@apache.org> on 2025/09/18 19:03:45 UTC
[I] smokeTestRelease throws SyntaxWarning: invalid escape sequence [lucene]
jainankitk opened a new issue, #15202:
URL: https://github.com/apache/lucene/issues/15202
### Description
```
/Users/akjain/.lucene-releases/9.12.3/lucene/dev-tools/scripts/smokeTestRelease.py:674: SyntaxWarning: invalid escape sequence '\d'
reMatchingDocs = re.compile('(\d+) total matching documents')
```
Should be quickly addressable by adding `r` prefix, atleast that's what AI suggested:
```
reMatchingDocs = re.compile(r'(\d+) total matching documents')
```
**Explanation of the change (by AI):**
* By adding the r prefix to the string '(\d+) total matching documents', it becomes r'(\d+) total matching documents'.
* In a raw string, \d is no longer interpreted as an invalid string escape sequence by Python's string parser. Instead, it is passed directly to the re module, which correctly interprets \d as the regular expression metacharacter for a digit.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org
Re: [I] smokeTestRelease throws SyntaxWarning: invalid escape sequence [lucene]
Posted by "jainankitk (via GitHub)" <gi...@apache.org>.
jainankitk closed issue #15202: smokeTestRelease throws SyntaxWarning: invalid escape sequence
URL: https://github.com/apache/lucene/issues/15202
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org
Re: [I] smokeTestRelease throws SyntaxWarning: invalid escape sequence [lucene]
Posted by "jainankitk (via GitHub)" <gi...@apache.org>.
jainankitk commented on issue #15202:
URL: https://github.com/apache/lucene/issues/15202#issuecomment-3309206069
Okay similar to https://github.com/apache/lucene/issues/15201, noticed this has been fixed in the `main` branch. Just not for `branch_9_12`, since generally, we don't expect to release much for `9.x`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org