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

TMUX_VAR_RE does not use raw string, leading to SyntaxWarning with python 3.12 #2244

Closed
wanderboessenkool opened this issue Oct 18, 2023 · 0 comments · Fixed by #2245
Closed

Comments

@wanderboessenkool
Copy link
Contributor

When using python 3.12 binding/config.py thows a syntax warning:

/usr/lib/python3.12/site-packages/powerline/bindings/config.py:179: SyntaxWarning: invalid escape sequence '\$'
  TMUX_VAR_RE = re.compile('\$(_POWERLINE_\w+)')
/usr/lib/python3.12/site-packages/powerline/bindings/config.py:179: SyntaxWarning: invalid escape sequence '\$'
  TMUX_VAR_RE = re.compile('\$(_POWERLINE_\w+)')
/usr/lib/python3.12/site-packages/powerline/bindings/config.py:179: SyntaxWarning: invalid escape sequence '\$'
  TMUX_VAR_RE = re.compile('\$(_POWERLINE_\w+)')

This is caused by a re.compile that not uses a raw string

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 a pull request may close this issue.

1 participant