def typecast_time(s): # does NOT store time zone information
    if not s: return None
    hour, minutes, seconds = s.split(':')
    if seconds in '.': # check whether seconds have a fractional part
        seconds, microseconds = seconds.split('.')
    else:
        microseconds = '0'
    return datetime.time(int(hour), int(minutes), int(seconds), int(float('.'+microseconds) * 1000000))
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-0.96/django/db/backends/util.py/typecast_time/swapped operands of `in`