@classmethod
def decomment(cls, line, char='/', repeat=2, esc='\\'):
    """ where we decomment comments char is a single 
			that need to be repeated atleast 2 times or repeat times 
			line that need to be decommented 
			Note - There is escape of comment with esc
		"""
    prevprevc = prevc = o = ''
    dqon = sqon = mpos = commenton = 0
    ccount = 1
    firstentry = 1
    for i, c in enumerate(line):
        if commenton:
            if firstentry:
                o = o[0:len(o) - repeat]
                firstentry = 0
            continue
        elif c == '"':
            if dqon:
                dqon = 0
            else:
                dqon = 1
            o += c
        elif c == "'":
            if sqon:
                sqon = 0
            else:
                sqon = 1
            o += c
        elif c == char and not sqon and not dqon:
            if prevc == c:
                ccount += 1
            else:
                ccount = 1
            o += c
            if ccount == repeat:
                if prevprevc == esc:
                    commenton = 0
                    cc = ''
                    for i in range(repeat):
                        o = o[0:-1]
                        cc += char
                    o = o[0:-1] + cc
                else:
                    commenton = 1
        else:
            o += c
        if prevc:
            prevprevc = prevc
        prevc = c
    return o
