Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-10-11 08:25:22 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-10-11 08:25:22 +0300
commitcb5cba3da0b11eff19780fc314e1465be398ec36 (patch)
tree2a375ab5a11c26638578571a038d106c6d1a951d
parent4c07dedd4aba5bee2c943819bff35330c521e262 (diff)
Fix T70724: PLY import fails with strings
-rw-r--r--io_mesh_ply/import_ply.py2
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