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
No related branches found
No related tags found
No related merge requests found
...@@ -156,7 +156,7 @@ def read(filepath): ...@@ -156,7 +156,7 @@ def read(filepath):
return None return None
while 1: while 1:
tokens = re.split(r'[ \n]+'.encode("ASCII"), file.readline()) tokens = re.split(br'[ \r\n]+', file.readline())
if len(tokens) == 0: if len(tokens) == 0:
continue continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment