mirror of https://github.com/arendst/Tasmota.git
Fix python coc warning (#19895)
This commit is contained in:
parent
0cd1ae965c
commit
86e777eaad
|
@ -104,7 +104,7 @@ class coc_parser:
|
||||||
return r[0]
|
return r[0]
|
||||||
|
|
||||||
def parse_object(self):
|
def parse_object(self):
|
||||||
self.text = re.sub("\s+//.*?$", "", self.text, flags=re.MULTILINE) # remove trailing comments
|
self.text = re.sub(r"\s+//.*?$", "", self.text, flags=re.MULTILINE) # remove trailing comments
|
||||||
while True:
|
while True:
|
||||||
obj = self.parse_block()
|
obj = self.parse_block()
|
||||||
self.objects.append(obj)
|
self.objects.append(obj)
|
||||||
|
|
Loading…
Reference in New Issue