Make custom.Message properties mutable

It is convenient to, for example, change the text before resending.
This commit is contained in:
Lonami Exo 2022-02-07 11:13:38 +01:00
parent c220d50ed8
commit bd7675581d

View File

@ -22,7 +22,7 @@ def _fwd(field, doc):
return getattr(self._message, field, None) return getattr(self._message, field, None)
def fset(self, value): def fset(self, value):
setattr(self._message, field, value) object.__setattr__(self._message, field, value)
return property(fget, fset, None, doc) return property(fget, fset, None, doc)