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:
@@ -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: '):
|
||||
|
||||
Reference in New Issue
Block a user