messages/_utils.py
def credential_property(cred):
    """
    A credential property factory for each message class that will set
    private attributes and return obfuscated credentials when requested.
    """

    def getter(instance):
        return "***obfuscated***"

    def setter(instance, value):
        private = "_" + cred
        instance.__dict__[private] = value

    return property(fget=getter, fset=setter)
def credential_property(cred):
    def getter(instance):
        return "***obfuscated***"

    def setter(instance, value):
        private = "_" + cred
        instance.__dict__[private] = value

    return property(fget=getter, fset=setter)
def credential_property ( cred ) : def getter ( instance ) : return "***obfuscated***" def setter ( instance , value ) : private = "_" + cred instance . __dict__ [ private ] = value return property ( fget = getter , fset = setter )
A credential property factory for each message class that will set
    private attributes and return obfuscated credentials when requested.
A credential property factory for each message class that will set private attributes and return obfuscated credentials when requested .