[Bf-committers] Syntax error in export_3ds.py

CoDEmanX codemanx at gmx.de
Sun Jul 8 14:38:35 CEST 2012


Commited fix:

http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3595

Should now work as expected.

Thanks for reporting!


Am 08.07.2012 06:08, schrieb IRIE Shinsuke:
> Hi,
>
> When I was byte-compiling release/scripts/addons/ (r3577), I got a
> syntax error in io_scene_3ds/export_3ds.py as follows:
>
>    File "/usr/share/blender/2.63/scripts/addons/io_scene_3ds/export_3ds.py", line 227
>      """
> class _3ds_point_4d(object):
>      """Class representing a four-dimensional point for a 3ds file, for instance a quaternion."""
>
>
>              ^
> SyntaxError: invalid syntax
>
>
> The triple-quotes """...""" are enclosed by the same style of
> triple-quotes:
>
> """
> class _3ds_point_4d(object):
>      """Class representing a four-dimensional point for a 3ds file, for instance a quaternion."""
>      __slots__ = ...
>
> """
>
> so the inside of the inner ones is not a string literal.
> Please use the different style of triple-quotes like below:
>
> '''
> class _3ds_point_4d(object):
>      """Class representing a four-dimensional point for a 3ds file, for instance a quaternion."""
>      __slots__ = ...
>
> '''
>
> Anyway, I think triple-quotes shouldn't be used to comment out
> multiple lines.
>



More information about the Bf-committers mailing list