Skip to content
New issue

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

snippets: fix python 3.12+ invalid escape sequence warnings #707

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mdeslaur
Copy link
Contributor

In Python 3.12+, invalid escape sequences changed from a DeprecationWarning to SyntaxWarning.

/usr/lib/x86_64-linux-gnu/pluma/plugins/snippets/Document.py:830: SyntaxWarning: invalid escape sequence '/'
prot1 = re.match('(^[a-z]+://|/)(.)', first)
/usr/lib/x86_64-linux-gnu/pluma/plugins/snippets/Document.py:831: SyntaxWarning: invalid escape sequence '/'
prot2 = re.match('(^[a-z]+://|/)(.
)', second)
/usr/lib/x86_64-linux-gnu/pluma/plugins/snippets/SubstitutionParser.py:162: SyntaxWarning: invalid escape sequence '\s'
match = re.match('\\?%s\s*' % self.REG_GROUP, tokens)

In Python 3.12+, invalid escape sequences changed from a
DeprecationWarning to SyntaxWarning.

/usr/lib/x86_64-linux-gnu/pluma/plugins/snippets/Document.py:830: SyntaxWarning: invalid escape sequence '\/'
  prot1 = re.match('(^[a-z]+:\/\/|\/)(.*)', first)
/usr/lib/x86_64-linux-gnu/pluma/plugins/snippets/Document.py:831: SyntaxWarning: invalid escape sequence '\/'
  prot2 = re.match('(^[a-z]+:\/\/|\/)(.*)', second)
/usr/lib/x86_64-linux-gnu/pluma/plugins/snippets/SubstitutionParser.py:162: SyntaxWarning: invalid escape sequence '\s'
  match = re.match('\\\\?%s\s*' % self.REG_GROUP, tokens)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant