Skip to content

Fix SyntaxWarning: invalid escape sequence '\m' in fitresult.py#514

Closed
SAY-5 wants to merge 1 commit into
JeschkeLab:mainfrom
SAY-5:fix-syntaxwarning-fitresult
Closed

Fix SyntaxWarning: invalid escape sequence '\m' in fitresult.py#514
SAY-5 wants to merge 1 commit into
JeschkeLab:mainfrom
SAY-5:fix-syntaxwarning-fitresult

Conversation

@SAY-5
Copy link
Copy Markdown

@SAY-5 SAY-5 commented May 12, 2026

Fixes #507.

Adds r prefix to the LaTeX label string at deerlab/fitresult.py:370 so Python 3.12+ no longer emits SyntaxWarning: invalid escape sequence '\m' when importing the module.

The actual string content is unchanged (\m was already being treated as literal backslash + 'm'); only the string literal syntax becomes warning-free.

@HKaras HKaras self-requested a review May 12, 2026 05:57
@HKaras
Copy link
Copy Markdown
Member

HKaras commented May 15, 2026

This minor bug is dealt with already in pull request #490.

@HKaras HKaras closed this May 15, 2026
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.

invalid esacpe sequence with Python 3.12

2 participants