Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix invalid escape sequence warnings#565

Draft
Mirochill wants to merge 1 commit into
b-ryan:masterb-ryan/powerline-shell:masterfrom
Mirochill:fix-561-invalid-escape-warningsMirochill/powerline-shell:fix-561-invalid-escape-warningsCopy head branch name to clipboard
Draft

Fix invalid escape sequence warnings#565
Mirochill wants to merge 1 commit into
b-ryan:masterb-ryan/powerline-shell:masterfrom
Mirochill:fix-561-invalid-escape-warningsMirochill/powerline-shell:fix-561-invalid-escape-warningsCopy head branch name to clipboard

Conversation

@Mirochill

@Mirochill Mirochill commented May 21, 2026

Copy link
Copy Markdown

Description

Fix Python 3.13+ SyntaxWarning: invalid escape sequence warnings reported in #561.

The patch:

  • escapes the Windows path separator example in the package docstring;
  • makes the git branch status regex a raw string while keeping the same pattern;
  • makes the uptime segment regexes raw strings as they had the same invalid escape pattern.

Fixes: #561

Validation

Not run locally.

Static validation run:

  • git diff --check HEAD~1..HEAD

I opened this as a draft because I do not see GitHub Actions checks for this repository; if remote CI appears, I will use that signal before marking it ready.

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.

Fresh install (python 3.13.5) SyntaxWarnings: invalid escape sequence

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.