コード例 #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)
コード例 #2
0
ファイル: wfBGP.py プロジェクト: hdb3/BGPstream
 def __init__(self,source):
     self.output_type = type(WireMessage)
     self.input_type = type(ByteStream)
     Translator.__init__(self,source)