Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#135 reading from socket with timeout=None causes TypeError

v1.0 (example)
closed-fixed
Chris Liechti
None
9
2013-05-31
2012-12-09
Anonymous
No

$ python
Python 2.7.2 (default, Jun 20 2012, 16:23:33)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import serial
>>> s = serial.serial_for_url('socket://10.95.33.167:2007', 115200)
>>> s.read()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/cwilson/.virtualenvs/pyserial/lib/python2.7/site-packages/serial/urlhandler/protocol_socket.py", line 138, in read
timeout = time.time() + self._timeout
TypeError: unsupported operand type(s) for +: 'float' and 'NoneType'

Discussion


  • Anonymous
    2012-12-09

    • priority: 5 --> 9
    • assigned_to: nobody --> cliechti
     
  • Chris Liechti
    Chris Liechti
    2013-05-31

    • status: open --> closed-fixed
    • Group: --> v1.0 (example)
     
  • Chris Liechti
    Chris Liechti
    2013-05-31

    Thanks, will be fixed in 2.7