old_contents: import sys
  import lcm
  
  from lilylcm import 04Dan
  
  if len(sys.argv) < 2:
      sys.stderr.write("usage: read-log <logfile>\n")
      sys.exit(1)
      
  log = lcm.EventLog(sys.argv[1], "r")
  
  for event in log:
      if event.channel == "EXAMPLE":
          msg = 04Dan.decode(event.data)
          
          print(Message:")
          print("  value  = %s" % str(msg.value))
          print("")
  
new_contents: import sys
  import lcm
  
  from lilylcm import 03Citrus
  
  if len(sys.argv) < 2:
      sys.stderr.write("usage: read-log <logfile>\n")
      sys.exit(1)
      
  log = lcm.EventLog(sys.argv[1], "r")
  
  for event in log:
      if event.channel == "03Citrus":
          msg = 03Citrus.decode(event.data)
          
          print(Message:")
          print("  value  = %s" % str(msg.value))
          print("")
  
subject: Update read-log.py