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

fix #51: use raw string for \S string #52

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

Conversation

vitiral
Copy link

@vitiral vitiral commented Mar 28, 2024

This change is Reviewable

@vitiral
Copy link
Author

vitiral commented Mar 28, 2024

Supported as far back as python 2.6: https://docs.python.org/2.6/reference/lexical_analysis.html#string-literals

@jfly
Copy link

jfly commented Jul 15, 2024

Edit: Please ignore, this is already covered in the issue: #51

This is pretty important for Python 3.12 support, as Python 3.12 has started emitting SyntaxWarnings for this situation:

Python 3.12.4 (main, Jun  6 2024, 18:26:44) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> '\S'
<stdin>:1: SyntaxWarning: invalid escape sequence '\S'
'\\S'

This causes a nasty bootup message when starting vim:

image

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.

2 participants