Menu

#181 Python3 error handling

v2.7
closed
nobody
None
5
2015-08-04
2015-03-29
F Malina
No

Trunk on Python 3 throws errors due to old style error handling using ...Error, e: syntax instead of ...Error as e:

See https://github.com/fmalina/pyserial/commit/08331d3b246c65c4b6b10a09f6a0a400a22ac89d
There's some more.

Discussion

  • Chris Liechti

    Chris Liechti - 2015-08-04
    • status: open --> closed
     
  • Chris Liechti

    Chris Liechti - 2015-08-04

    The 3.x series (https://github.com/pyserial/pyserial) will support Python 3 natively.

    For the 2.x series, you need to use "python3 setup.py install" where it invokes 2to3.py tp convert the code.

     

Log in to post a comment.

MongoDB Logo MongoDB