[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1917] trunk/py/scripts/addons/ io_mesh_ply/import_ply.py: fix [#27369] Import PLY fails with windows line endings

Campbell Barton ideasman42 at gmail.com
Wed May 11 16:51:17 CEST 2011


Revision: 1917
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=1917
Author:   campbellbarton
Date:     2011-05-11 14:51:17 +0000 (Wed, 11 May 2011)
Log Message:
-----------
fix [#27369] Import PLY fails with windows line endings

Modified Paths:
--------------
    trunk/py/scripts/addons/io_mesh_ply/import_ply.py

Modified: trunk/py/scripts/addons/io_mesh_ply/import_ply.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_ply/import_ply.py	2011-05-10 18:40:05 UTC (rev 1916)
+++ trunk/py/scripts/addons/io_mesh_ply/import_ply.py	2011-05-11 14:51:17 UTC (rev 1917)
@@ -156,7 +156,7 @@
         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



More information about the Bf-extensions-cvs mailing list