def __setattr__(self, attr, value):
        assert type(attr) is str
        if not attr in _x509names:
            raise AttributeError("%s is not a valid OpenSSL X509 name field" % (attr,))
        realAttr = _x509names[attr]
        value = value.encode('ascii')
        assert type(value) is str
        self[realAttr] = value
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/internet/_sslverify.py/DistinguishedName.__setattr__/original