Skip to content

Commit 9cf2d63

Browse files
authored
Replace Deprecated breptools_Write with breptools.Write (#711)
1 parent 1c5747e commit 9cf2d63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/jupytercad_lab/jupytercad_lab/notebook/cad_document.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def add_occ_shape(
227227
:return: The document itself.
228228
"""
229229
try:
230-
from OCC.Core.BRepTools import breptools_Write
230+
from OCC.Core.BRepTools import breptools
231231
except ImportError:
232232
raise RuntimeError("Cannot add an OpenCascade shape if it's not installed.")
233233

@@ -237,7 +237,7 @@ def add_occ_shape(
237237
return
238238

239239
with tempfile.NamedTemporaryFile() as tmp:
240-
breptools_Write(shape, tmp.name, True, False, 1)
240+
breptools.Write(shape, tmp.name, True, False, 1)
241241
brepdata = tmp.read().decode("ascii")
242242

243243
data = {

0 commit comments

Comments
 (0)