From a6b3fe0f087e432e2b8e338322d4f95d5d491f30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolai=20S=C3=B8borg?= <8722223+NicolaiSoeborg@users.noreply.github.com> Date: Fri, 17 Jul 2026 09:55:43 +0200 Subject: [PATCH] Fix invalid escape sequence '\m' (SyntaxWarning) Getting this error while using the library: > /usr/lib/python3/dist-packages/stem/util/ed25519.py:69: SyntaxWarning: invalid escape sequence '\m' > """$= z^{-1} \mod q$, for z != 0""" Not sure what is preferred; just "mod" or escaping the comment so it is valid python but not "directly" valid LaTeX --- stem/util/ed25519.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stem/util/ed25519.py b/stem/util/ed25519.py index 7c0161dca..e58491f13 100644 --- a/stem/util/ed25519.py +++ b/stem/util/ed25519.py @@ -64,7 +64,7 @@ def pow2(x, p): def inv(z): - """$= z^{-1} \mod q$, for z != 0""" + """$= z^{-1} \\mod q$, for z != 0""" # Adapted from curve25519_athlon.c in djb's Curve25519. z2 = z * z % q # 2 z9 = pow2(z2, 2) * z % q # 9