示例#1
0
 def start_block(self, field, userdata = None):
     WriterTextStream.start_block(self, field, userdata)
     try:
         str_hex = " " + field.str_hex_value()
     except:
         str_hex = ""
     self.stream().write(str("(%s =%s") % (field.name(), str_hex))
示例#2
0
 def __init__(self, stream, config = WriterTextTableConfig()):
     WriterTextStream.__init__(self, stream, config)
示例#3
0
 def end_block(self, field, userdata = None):
     WriterTextStream.end_block(self, field, userdata)
     self.stream().write(str(")"))