From f127cafc41539ed0f604d78dfe63c300d7cfe753 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 19 Sep 2010 14:26:41 +0000 Subject: minor syntax adjustments --- io_mesh_stl/stl_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'io_mesh_stl') 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 -- cgit v1.2.3