'Collect data'

def _data(self, cmdType, cmd, sock, f):

    self._send(((cmdType + '    ') + cmd), sock)
    data = []
    while True:
        s = self._readline(f)
        if (s == '.'):
            break
        if (cmdType == 'config'):
            if (containsStr(s, '.label') == False):
                continue
        data.append(s)
    return data
