def line( loc, strg ):
    lastCR = strg.rfind("\n", 0, loc)
    nextCR = strg.find("\n", loc)
    if nextCR >= 0:
        return strg[lastCR+1:nextCR]
    else:
        return strg[lastCR+1:]
Returns either x or o if one of them won, otherwise None
dataset/ETHPy150Open pypa/pip/pip/_vendor/pyparsing.py/line--crossover with--dataset/ETHPy150Open thomasballinger/curtsies/examples/tictactoeexample.py/Board.winner