2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-09-02 07:26:04 +00:00

Use a raw string for a regex escape (W605)

'\s' is not a recognised string escape.  Python still accepts it today but
warns, and it becomes a syntax error in a future release.
This commit is contained in:
Markus Hilger
2026-08-09 07:09:15 +02:00
parent b119de345b
commit fcacaca79d
@@ -2,7 +2,7 @@
import re
import subprocess
import json
uplinkmatch = re.compile('^\s*Uplinks:\s*(.*)')
uplinkmatch = re.compile(r'^\s*Uplinks:\s*(.*)')
nodename = None
for inf in open('/etc/confluent/confluent.info', 'r').read().split('\n'):
if inf.startswith('NODENAME: '):