(path)
Returns the contents of the first line in `path` that starts with a digit.
Returns the contents of the first line in `path` that starts with a digit.
Returns the contents of the first line in path that starts with a digit .
def get_official_milestone(path):
    """
    Returns the contents of the first line in `path` that starts with a digit.
    """

    with open(path) as fp:
        for line in fp:
            line = line.strip()
            if line[:1].isdigit():
                return line

    raise Exception("Didn't find a line that starts with a digit.")
def get_official_milestone ( path ) : with open ( path ) as fp : for line in fp : line = line . strip ( ) if line [ : 1 ] . isdigit ( ) : return line raise Exception ( "Didn't find a line that starts with a digit." )