alsmith / multicast-relay

Relay multicast and broadcast packets between interfaces.
GNU General Public License v3.0
318 stars 50 forks source link

Python 3.12 #81

Open juliodiz opened 8 months ago

juliodiz commented 8 months ago

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):