jaspernbrouwer / powerline-gitstatus

A Powerline segment for showing the status of a Git working copy
MIT License
383 stars 52 forks source link

Fix "SyntaxWarning: invalid escape sequence" for Python 3.12 #49

Closed jiaqingz-intel closed 1 week ago

jiaqingz-intel commented 3 weeks ago

Mark all regular expressions as raw string to fix "SyntaxWarning: invalid escape sequence" for Python 3.12.

jiaqingz-intel commented 3 weeks ago

The change is duplicated to https://github.com/jaspernbrouwer/powerline-gitstatus/pull/48 , but that one seems to be forgotten for months :(

Now debian testing adopts Python 3.12, these annoying warning message is really a problem