diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-10-11 08:25:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-10-11 08:25:22 +0300 |
commit | cb5cba3da0b11eff19780fc314e1465be398ec36 (patch) | |
tree | 2a375ab5a11c26638578571a038d106c6d1a951d /io_mesh_ply | |
parent | 4c07dedd4aba5bee2c943819bff35330c521e262 (diff) |
Fix T70724: PLY import fails with strings
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 d0deee0a..5da7f9d6 100644 --- a/io_mesh_ply/import_ply.py +++ b/io_mesh_ply/import_ply.py @@ -64,7 +64,7 @@ class property_spec(object): ans = [] for i in range(count): s = stream[i] - if len(s) < 2 or s[0] != '"' or s[-1] != '"': + if not (len(s) >= 2 and s.startswith(b'"') and s.endswith(b'"')): print('Invalid string', s) print('Note: ply_import.py does not handle whitespace in strings') return None |