[x3d-public] python 2.7 complains about x3d.py
John Carlson
yottzumm at gmail.com
Thu Jun 11 21:31:40 PDT 2020
https://www.python.org/dev/peps/pep-0263/ (declaring an encoding)
On Thu, Jun 11, 2020 at 2:20 PM Andreas Plesch <andreasplesch at gmail.com>
wrote:
> $ python
> Python 2.7.16 (default, Oct 10 2019, 22:02:15)
> [GCC 8.3.0] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import x3d.x3d as x
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/home/andreas/.local/lib/python2.7/site-packages/x3d/x3d.py", line
> 206
> SyntaxError: Non-ASCII character '\xc3' in file
> /home/andreas/.local/lib/python2.7/site-packages/x3d/x3d.py on line 206,
> but no encoding declared; see http://python.org/de
> v/peps/pep-0263/ for details
>
> $ cat -nA /home/andreas/.local/lib/python2.7/site-packages/x3d/x3d.py |
> grep 206 | head -1
> 206 'SFMatrix3d', # Single Field (singleton) 3M-CM-^W3 matrix of
> double-precision floating point numbers$
>
> There are indeed non-ascii characters.
>
> python3 does not complain.
>
> --
> Andreas Plesch
> Waltham, MA 02453
> _______________________________________________
> x3d-public mailing list
> x3d-public at web3d.org
> http://web3d.org/mailman/listinfo/x3d-public_web3d.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20200611/3f194d99/attachment.html>
More information about the x3d-public
mailing list