define __slots__ for class ByteFifo
This commit is contained in:
@@ -7,6 +7,8 @@ else: # pragma: no cover
|
|||||||
|
|
||||||
class ByteFifo:
|
class ByteFifo:
|
||||||
""" a byte FIFO buffer with trigger callback """
|
""" a byte FIFO buffer with trigger callback """
|
||||||
|
__slots__ = ('__buf', '__trigger_cb')
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.__buf = bytearray()
|
self.__buf = bytearray()
|
||||||
self.__trigger_cb = None
|
self.__trigger_cb = None
|
||||||
|
|||||||
Reference in New Issue
Block a user