Revision 38936fe1 client/python/hlrc_client/RobotEmotion.py

View differences:

client/python/hlrc_client/RobotEmotion.py
39 39
    # mappings from values to strings and vice versa
40 40
    __value_as_str = dict(zip([NEUTRAL, HAPPY, SAD, ANGRY, SURPRISED, FEAR],
41 41
                              ['neutral', 'happy', 'sad', 'angry', 'surprised', 'fear']))
42
    __str_as_value = dict([(s,v) for v,s in __value_as_str.iteritems()])
42
    __str_as_value = dict([(s,v) for v,s in __value_as_str.items()])
43 43

  
44 44
    def __init__(self, emotion = NEUTRAL, duration = 1.):
45 45
        """ constructor

Also available in: Unified diff