inherit from io.RawIOBase in SerialBase instead of everywhere else
diff --git a/serial/urlhandler/protocol_loop.py b/serial/urlhandler/protocol_loop.py
index 71fdcf7..05a21cd 100644
--- a/serial/urlhandler/protocol_loop.py
+++ b/serial/urlhandler/protocol_loop.py
@@ -29,7 +29,7 @@
}
-class LoopbackSerial(SerialBase):
+class Serial(SerialBase):
"""Serial port implementation that simulates a loop back connection in plain software."""
BAUDRATES = (50, 75, 110, 134, 150, 200, 300, 600, 1200, 1800, 2400, 4800,
@@ -250,21 +250,6 @@
# None so far
-# assemble Serial class with the platform specific implementation and the base
-# for file-like behavior. for Python 2.6 and newer, that provide the new I/O
-# library, derive from io.RawIOBase
-try:
- import io
-except ImportError:
- # classic version with our own file-like emulation
- class Serial(LoopbackSerial, FileLike):
- pass
-else:
- # io library present
- class Serial(LoopbackSerial, io.RawIOBase):
- pass
-
-
# simple client test
if __name__ == '__main__':
import sys