def _removeQuoteSet(line, quote1, quote2):
    ln = len(quote1)
    while True:
        a = line.find(quote1), quote1   
        b = line.find(quote2), quote2
        if a[0] == -1 and b[0] == -1:             
            return line
        if b[0] == -1 or (b[0] < a[0]):
            firstPoint = a[0]
            firstQuote = a[1]
        else:
            firstPoint = b[0]
            firstQuote = b[1]
        secondPoint = line[(firstPoint+ln):].find(firstQuote)
        if secondPoint == -1:
            return None
        secondPoint += firstPoint
        line = line[:firstPoint] + line[(secondPoint+2*ln):]
dataset/ETHPy150Open sassoftware/conary/conary/lib/epdb_embedded/__init__.py/_removeQuoteSet/original