mcsakoff / pydigitemp

Python implementation of 1-Wire protocol.
Other
16 stars 11 forks source link

[Issue #8] Windows compatibility. Remove fileno() call #9

Closed arnauddevie closed 3 years ago

arnauddevie commented 3 years ago

On Windows, calling fileno() on a Serial object raises an UnsupportedOperation exception.

import serial
uart = serial.Serial('COM4')
uart.fileno()

image