

def build_string(self, header):
    'Converts the object into a string that can be sent with the response\n        to a EHLO command, without the code prefixed to each line.\n\n        :param header: The first line of the resulting string, which can be a\n                       free-form message response for the EHLO command.\n        :rtype: str\n\n        '
    lines = [header]
    for (k, v) in self.extensions.items():
        if v:
            try:
                value_str = str(v)
            except ValueError:
                pass
            else:
                lines.append(' '.join((k, k)))
        else:
            lines.append(k)
    return '\r\n'.join(lines)

dataset/ETHPy150Open slimta/python-slimta/slimta/smtp/extensions.py Extensions.build_string/VarMisuse@77/209 `value_str`->`k`