Skip to content

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

Open
emollier wants to merge 1 commit intonjsmith:masterfrom
emollier:syntax-warning
Open

c/comparison.py: make docstring a raw string.#33
emollier wants to merge 1 commit intonjsmith:masterfrom
emollier:syntax-warning

Conversation

@emollier
Copy link
Copy Markdown

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 <emollier@debian.org>
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