diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-05-11 18:51:17 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-05-11 18:51:17 +0400 |
commit | 1ef45bae5521b834dd89d8f85a64926e120c8341 (patch) | |
tree | 6fda6012235dc1f45f2eb1831b55afb4a2060466 /io_mesh_ply | |
parent | 298e81cc75faf7b3002140e31db8b6cca7d599fc (diff) |
fix [#27369] Import PLY fails with windows line endings
Diffstat (limited to 'io_mesh_ply')
-rw-r--r-- | io_mesh_ply/import_ply.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_mesh_ply/import_ply.py b/io_mesh_ply/import_ply.py index 8e5db68e..fc87e66e 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 |