'Build the results.'

def __buid_result(self, varBinds):

    ret = {}
    for (name, val) in varBinds:
        if (str(val) == ''):
            ret[name.prettyPrint()] = ''
        else:
            ret[name.prettyPrint()] = val.prettyPrint()
            if ret[name.prettyPrint()].startswith("b'"):
                ret[name.prettyPrint()] = ret[name.prettyPrint()][2:(-1)]
    return ret
