Skip to content
Snippets Groups Projects
Commit 1ef45bae authored by Campbell Barton's avatar Campbell Barton
Browse files

fix [#27369] Import PLY fails with windows line endings

parent 298e81cc
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment