From 1ef45bae5521b834dd89d8f85a64926e120c8341 Mon Sep 17 00:00:00 2001 From: Campbell Barton <ideasman42@gmail.com> Date: Wed, 11 May 2011 14:51:17 +0000 Subject: [PATCH] fix [#27369] Import PLY fails with windows line endings --- 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 8e5db68ec..fc87e66ed 100644 --- a/io_mesh_ply/import_ply.py +++ b/io_mesh_ply/import_ply.py @@ -156,7 +156,7 @@ def read(filepath): return None while 1: - tokens = re.split(r'[ \n]+'.encode("ASCII"), file.readline()) + tokens = re.split(br'[ \r\n]+', file.readline()) if len(tokens) == 0: continue -- GitLab