(motion, count)
return str(count) + motion_str
Build a string like 'k', 'hh', '15w
Build a string like 'k', 'hh', '15w
Build a string like k hh 15w
def get_count(motion, count):
    """Build a string like 'k', 'hh', '15w'"""
    motion_str = strtrans(motion.motion + (motion.argument or ""))
    if count == 1:
        return motion_str

    elif count == 2 and len(motion_str) == 1:
        # It's easier to press a single-character motion twice
        # than to type a 2 before it
        return (motion_str) * 2

    return str(count) + motion_str
def get_count ( motion , count ) : motion_str = strtrans ( motion . motion + ( motion . argument or "" ) ) if count == 1 : return motion_str elif count == 2 and len ( motion_str ) == 1 : # It's easier to press a single-character motion twice # than to type a 2 before it return ( motion_str ) * 2 return str ( count ) + motion_str