From d44ea4e9fef9c1c332192ae062cf57b7e0fceb6b Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 18 Aug 2019 16:26:45 +0000 Subject: [PATCH] hdl.xfrm: make deprecated CEInserter more well-behaved. --- nmigen/hdl/xfrm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nmigen/hdl/xfrm.py b/nmigen/hdl/xfrm.py index 11bfd2a..4c96b7c 100644 --- a/nmigen/hdl/xfrm.py +++ b/nmigen/hdl/xfrm.py @@ -698,4 +698,5 @@ class EnableInserter(_ControlInserter): return new_fragment -CEInserter = deprecated("instead of `CEInserter`, use `EnableInserter`")(EnableInserter) +CEInserter = staticmethod( + deprecated("instead of `CEInserter`, use `EnableInserter`")(EnableInserter)) -- 2.30.2