From d9fcbd06018165cc2cfca0673c7c2db44b04a833 Mon Sep 17 00:00:00 2001 From: Campbell Barton <ideasman42@gmail.com> Date: Tue, 4 Feb 2014 09:20:37 +1100 Subject: [PATCH] Fix T38462: error importing PLY with leading space --- io_mesh_ply/import_ply.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io_mesh_ply/import_ply.py b/io_mesh_ply/import_ply.py index 9cf5df639..5d4f8244a 100644 --- a/io_mesh_ply/import_ply.py +++ b/io_mesh_ply/import_ply.py @@ -35,7 +35,7 @@ class element_spec(object): def load(self, format, stream): if format == b'ascii': - stream = re.split(b'\s+', stream.readline()) + stream = stream.readline().split() return [x.load(format, stream) for x in self.properties] def index(self, name): -- GitLab