Skip to content

Commit 8053c92

Browse files
authored
Properly escape backlashes in E614_REGEX (#47)
Using r-strings to avoid the new "invalid escape sequence" `SyntaxWarning` in Python 3.12
1 parent ca226e4 commit 8053c92

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lightspark/lightspark_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,5 +1016,4 @@ def fail_htlcs(self, invoice_id: str, cancel_invoice: bool = True) -> str:
10161016
return json["fail_htlcs"]["invoice"]["id"]
10171017

10181018

1019-
# pylint: disable=anomalous-backslash-in-string
1020-
E614_REGEX = re.compile("^\+?[1-9]\d{1,14}$")
1019+
E614_REGEX = re.compile(r"^\+?[1-9]\d{1,14}$")

0 commit comments

Comments
 (0)