Beispiel #1
0
 def __init__(self, source):
     self.output_type = type(BaseMessage)
     self.input_type = type(BaseMessage)
     #assert issubclass(source,Source)
     #assert source.output_type == self.input_type
     #self.next = source
     Translator.__init__(self, source)
Beispiel #2
0
 def __init__(self,source):
     self.output_type = type(WireMessage)
     self.input_type = type(ByteStream)
     Translator.__init__(self,source)