Skip to content

Fix invalid escape sequence warnings - #565

Draft
Mirochill wants to merge 1 commit into
b-ryan:masterfrom
Mirochill:fix-561-invalid-escape-warnings
Draft

Fix invalid escape sequence warnings#565
Mirochill wants to merge 1 commit into
b-ryan:masterfrom
Mirochill:fix-561-invalid-escape-warnings

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