import select
import lcm
from lilylcm import 04Dan

def my_handler(channel, data):
    msg = 04Dan.decode(data)
    print("Received message on channel /"%s/"" % channel)
    print("  value  = %s" % str(msg.value))
    print("")
    
lc = lcm.LCM()
subscription = lc.subscribe("EXAMPLE", my_handler)

try:
    timeout = 1.5 # amount of time to wait, in seconds
    while True:
        rfds, wfds, efds = select.select([lc.fileno()], [], [], timeout)
        if rfds:
            lc.handle()
            

@@ -39,20 +39,23 @@
 import 0
-4Dan
+3Citrus
 %0A%0Adef my
@@ -94,12 +94,15 @@
  = 0
-4Dan
+3Citrus
 .dec
@@ -280,15 +280,13 @@
 be(%22
-EXAMPLE
+04Dan
 %22, m

Update listener_select.py