Make python Regex Strings raw to avoid py3.12 SyntaxError
This commit is contained in:
@@ -450,7 +450,7 @@ class _ViewProviderRebar(ArchComponent.ViewProviderComponent):
|
||||
import re
|
||||
self.centerline = coin.SoSeparator()
|
||||
comp = Part.makeCompound(obj.Proxy.wires)
|
||||
buf = re.findall("point \[(.*?)\]",comp.writeInventor().replace("\n",""))
|
||||
buf = re.findall(r"point \[(.*?)\]",comp.writeInventor().replace("\n",""))
|
||||
pts = [zip(*[iter( c.split() )]*3) for c in buf]
|
||||
for pt in pts:
|
||||
vlist = [ [float(v[0]),float(v[1]),float(v[2])] for v in pt ]
|
||||
|
||||
Reference in New Issue
Block a user