From: whitequark Date: Tue, 4 Jun 2019 12:00:02 +0000 (+0000) Subject: compat.fhdl.module: implement some TODO'd deprecation warnings. X-Git-Tag: locally_working~188 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0cbb743df9e6c6027e48e15d517075aebb4d99af;p=nmigen.git compat.fhdl.module: implement some TODO'd deprecation warnings. --- diff --git a/nmigen/compat/fhdl/module.py b/nmigen/compat/fhdl/module.py index 26feb16..43ca8fb 100644 --- a/nmigen/compat/fhdl/module.py +++ b/nmigen/compat/fhdl/module.py @@ -83,12 +83,12 @@ class _CompatModuleSubmodules(_CompatModuleProxy): class _CompatModuleClockDomains(_CompatModuleProxy): - @deprecated("TODO") + @deprecated("instead of `self.clock_domains. =`, use `m.domains. =`") def __setattr__(self, name, value): self.__iadd__(value) setattr(self._cm, name, value) - @deprecated("TODO") + @deprecated("instead of `self.clock_domains +=`, use `m.domains +=`") def __iadd__(self, other): self._cm._module.domains += _flat_list(other) return self