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:
authorCampbell Barton <ideasman42@gmail.com>2010-09-19 18:26:41 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-09-19 18:26:41 +0400
commitf127cafc41539ed0f604d78dfe63c300d7cfe753 (patch)
treecb33f652d61ea214d82819929db708ad276f16b6 /io_mesh_stl
parenta3bfb72abb425eb8a4c1691cf042dc927cca2636 (diff)
minor syntax adjustments
Diffstat (limited to 'io_mesh_stl')
-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