From a297cdba736e1a9e6d7b3c0b0c691efb63238fe6 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Mon, 9 Feb 2026 17:04:57 +0700 Subject: [PATCH] ModemATCommandLink: fix SyntaxWarning: invalid escape sequence '\+' Change-Id: If8de5299a4dc5a8525ef6657213db95d30e3c83b Fixes: OS#6948 --- pySim/transport/modem_atcmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pySim/transport/modem_atcmd.py b/pySim/transport/modem_atcmd.py index 440ec779..57f63b0a 100644 --- a/pySim/transport/modem_atcmd.py +++ b/pySim/transport/modem_atcmd.py @@ -166,7 +166,7 @@ class ModemATCommandLink(LinkBaseTpdu): # Make sure that the response has format: b'+CSIM: %d,\"%s\"' try: - result = re.match(b'\+CSIM: (\d+),\"([0-9A-F]+)\"', rsp) + result = re.match(rb'\+CSIM: (\d+),\"([0-9A-F]+)\"', rsp) (_rsp_tpdu_len, rsp_tpdu) = result.groups() except Exception as exc: raise ReaderError('Failed to parse response from modem: %s' % rsp) from exc