

def build_frame(self, command, headers, body):
    'Build a stom frame'
    message = (command + '\n')
    for (header, value) in headers:
        message += (((header + ':') + value) + '\n')
    message += '\n'
    message += body
    message += '\x00'
    return message

dataset/ETHPy150Open ebu/radiodns-plugit/RadioVisServer/tests.py Main.build_frame/original