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

c/comparison.py: make docstring a raw string. #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

emollier
Copy link

The docstring describing the deltaE function contains several mathematical symbols with LaTeX-style syntax, causing python3.12 and newer to throw SyntaxWarning, like reported in issue #32, or like Debian bug #1085424. Converting it to raw string prevents attempts to interpret the backslash character as if it were an invalid escape sequence in a C string.

The docstring describing the deltaE function contains several
mathematical symbols with LaTeX-style syntax, causing python3.12 and
newer to throw SyntaxWarning, like reported in issue njsmith#32, or like
[Debian bug #1085424].  Converting it to raw string prevents attempts
to interpret the backslash character as if it were an invalid escape
sequence in a C string.

[Debian bug #1085424]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1085424

Signed-off-by: Étienne Mollier <[email protected]>
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.

1 participant