def is_cmt(line,cmt):
    """Test if it is an comment line"""

    if len(line)==1:
        return False
    else:
        for i in range(len(line)):
            if line[i]!=' ' and line[i]!='\t':
                if len(line[i:])>len(cmt):
                    if line[i:i+len(cmt)]==cmt:
                        return True
                    else:
                        break
    return False