New submission from Reto Cavelti:

bug in pyserial: serialposix.py

line 50:
        # set custom divisor
        buf[6] = buf[7] / baudrate

TypeError: integer argument expected, got float

fix: do cast: buf[6] = int(buf[7] / baudrate)

----------
components: Library (Lib)
messages: 286168
nosy: rc
priority: normal
severity: normal
status: open
title: bug in pyserial: serialposix.py
type: crash
versions: Python 3.5

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29361>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to