inherit from io.RawIOBase in SerialBase instead of everywhere else
diff --git a/serial/serialjava.py b/serial/serialjava.py
index cc25a7b..e36ecf5 100644
--- a/serial/serialjava.py
+++ b/serial/serialjava.py
@@ -49,7 +49,7 @@
return ports[portnumber].getName()
-class JavaSerial(SerialBase):
+class Serial(SerialBase):
"""\
Serial port class, implemented with Java Communications API and
thus usable with jython and the appropriate java extension.
@@ -233,21 +233,6 @@
self.sPort.isCD()
-# 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(JavaSerial, FileLike):
- pass
-else:
- # io library present
- class Serial(JavaSerial, io.RawIOBase):
- pass
-
-
if __name__ == '__main__':
s = Serial(0,
baudrate=19200, # baudrate