laforge submitted this change.
ModemATCommandLink: fix SyntaxWarning: invalid escape sequence '\+'
Change-Id: If8de5299a4dc5a8525ef6657213db95d30e3c83b
Fixes: OS#6948
---
M pySim/transport/modem_atcmd.py
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pySim/transport/modem_atcmd.py b/pySim/transport/modem_atcmd.py
index 440ec77..57f63b0 100644
--- a/pySim/transport/modem_atcmd.py
+++ b/pySim/transport/modem_atcmd.py
@@ -166,7 +166,7 @@
# 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
To view, visit change 42076. To unsubscribe, or for help writing mail filters, visit settings.