From 1271563954e2f9226f6e2c06883682824588f52e Mon Sep 17 00:00:00 2001 From: Ramiro Bou <2000719+Polsaker@users.noreply.github.com> Date: Thu, 22 Aug 2024 11:15:45 -0300 Subject: [PATCH] Properly escape backlashes in E614_REGEX Using r-strings to avoid the new "invalid escape sequence" `SyntaxWarning` in Python 3.12 --- lightspark/lightspark_client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lightspark/lightspark_client.py b/lightspark/lightspark_client.py index bf2bdef..7ac35c5 100644 --- a/lightspark/lightspark_client.py +++ b/lightspark/lightspark_client.py @@ -1016,5 +1016,4 @@ def fail_htlcs(self, invoice_id: str, cancel_invoice: bool = True) -> str: return json["fail_htlcs"]["invoice"]["id"] -# pylint: disable=anomalous-backslash-in-string -E614_REGEX = re.compile("^\+?[1-9]\d{1,14}$") +E614_REGEX = re.compile(r"^\+?[1-9]\d{1,14}$")