Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'io_mesh_stl/stl_utils.py')
-rw-r--r--io_mesh_stl/stl_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/io_mesh_stl/stl_utils.py b/io_mesh_stl/stl_utils.py
index 92723e98..ff647b67 100644
--- a/io_mesh_stl/stl_utils.py
+++ b/io_mesh_stl/stl_utils.py
@@ -195,7 +195,7 @@ def read_stl(filename):
>>> pts = list(pts)
>>>
>>> # print the coordinate of the triangle n
- >>> print([pts[i] for i in tris[n]])
+ >>> print(pts[i] for i in tris[n])
'''
tris, pts = [], ListDict()
@@ -209,7 +209,7 @@ def read_stl(filename):
# If the point is allready in the list of points, the
# index returned by pts.add() will be the one from the
# first equal point inserted.
- tris.append([pts.add(p) for p in pt])
+ tris.append(pts.add(p) for p in pt)
return tris, pts.list