Python 3.12
Opened this issue · 0 comments
juliodiz commented
multicast-relay.py:742: SyntaxWarning: invalid escape sequence '\A'
elif re.match('\A\d+.\d+.\d+.\d+\Z', interface):
multicast-relay.py:751: SyntaxWarning: invalid escape sequence '\A'
elif re.match('\A\d+.\d+.\d+.\d+/\d+\Z', interface):
Original:
elif re.match('\A\d+.\d+.\d+.\d+\Z', interface):
elif re.match('\A\d+.\d+.\d+.\d+/\d+\Z', interface):
CHANGE TO
elif re.match(r'\A\d+.\d+.\d+.\d+\Z', interface):
elif re.match(r'\A\d+.\d+.\d+.\d+/\d+\Z', interface):