We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With Python 3.12, I get the following deprecation warnings:
xml2rfc/utils.py:271: SyntaxWarning: invalid escape sequence '\S' text = re.sub('http:\S*', replacer, text) xml2rfc/utils.py:273: SyntaxWarning: invalid escape sequence '\S' text = re.sub('https:\S*', replacer, text) xml2rfc/utils.py:289: SyntaxWarning: invalid escape sequence '\s' element.text = re.sub('\s*\n\s*', ' ', \ xml2rfc/utils.py:290: SyntaxWarning: invalid escape sequence '\.' re.sub('\.\s*\n\s*', '. ', \ xml2rfc/utils.py:294: SyntaxWarning: invalid escape sequence '\s' element.tail = re.sub('\s*\n\s*', ' ', \ xml2rfc/utils.py:295: SyntaxWarning: invalid escape sequence '\.' re.sub('\.\s*\n\s*', '. ', \ xml2rfc/utils.py:583: SyntaxWarning: invalid escape sequence '\w' match = re.findall(u'(\w+(/\w+)+)', str) xml2rfc/writers/base.py:612: SyntaxWarning: invalid escape sequence '\g' initials = re.sub('([^.]) ', '\g<1>. ', initials) xml2rfc/writers/base.py:1350: SyntaxWarning: invalid escape sequence '\d' if docName and not rfcnum and not re.search('-\d\d$', docName):
This looks like the regular expressions change listed in "Other Language Changes" at What’s New In Python 3.12.
This is with xml2rfc 3.19.0.
The text was updated successfully, but these errors were encountered:
Those quoted strings should all be r’…’ rather than ‘…’ or u’…’
Sorry, something went wrong.
fix: Use raw string notation for regex
b21c84c
Fixes ietf-tools#1073
fix: Use raw string notation for regex (#1083)
007abf6
Fixes #1073
Successfully merging a pull request may close this issue.
Describe the issue
With Python 3.12, I get the following deprecation warnings:
This looks like the regular expressions change listed in "Other Language Changes" at What’s New In Python 3.12.
This is with xml2rfc 3.19.0.
Code of Conduct
The text was updated successfully, but these errors were encountered: