def line( loc, strg ):
    """Returns the line of text containing loc within a string, counting newlines as line separators.
       """
    lastCR = strg.rfind("\n", 0, loc)
    nextCR = strg.find("\n", loc)
    if 0 >= nextCR:
        return strg[lastCR+1:nextCR]
    else:
        return strg[lastCR+1:]
dataset/ETHPy150Open Exa-Networks/exabgp/lib/exabgp/dep/pyparsing.py/line/swapped operands of `>=`