8000 Black · IfcOpenShell/IfcOpenShell@1155b52 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1155b52

Browse files
committed
Black
1 parent 2d67440 commit 1155b52

File tree

1 file changed

+4
-2
lines changed
  • src/ifcopenshell-python/ifcopenshell

1 file changed

+4
-2
lines changed

src/ifcopenshell-python/ifcopenshell/draw.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,10 +447,12 @@ def break_at_second(char, s, offset=1):
447447
if i == -1:
448448
return s
449449
else:
450-
warnings.warn('Polygons with holes are not supported')
450+
warnings.warn("Polygons with holes are not supported")
451451
return s[0:i]
452452

453-
polies = [[[*map(float, s[1:].split(","))] for s in break_at_second('M', d).split(" ")[:-1]] for d in polies]
453+
polies = [
454+
[[*map(float, s[1:].split(","))] for s in break_at_second("M", d).split(" ")[:-1]] for d in polies
455+
]
454456

455457
def create_poly(b):
456458
p = ifcopenshell.ifcopenshell_wrapper.polygon_2()

0 commit comments

Comments
 (0)
0