(action)
return action
convert position parameter for API 1 compatibility
convert position parameter for API 1 compatibility
convert position parameter for API 1 compatibility
def convert_position(action):
    """convert position parameter for API 1 compatibility"""
    pos = getattr(action, "position", None)
    if pos is not None:
        action.position = format_time(pos)
    return action
def convert_position ( action ) : pos = getattr ( action , "position" , None ) if pos is not None : action . position = format_time ( pos ) return action