hdl.xfrm: make deprecated CEInserter more well-behaved.
authorwhitequark <whitequark@whitequark.org>
Sun, 18 Aug 2019 16:26:45 +0000 (16:26 +0000)
committerwhitequark <whitequark@whitequark.org>
Sun, 18 Aug 2019 16:26:45 +0000 (16:26 +0000)
nmigen/hdl/xfrm.py

index 11bfd2a7a1ab3494c233e6ee4133207a77674e29..4c96b7c31ebd263d6c49078ae01888ab3af3a22c 100644 (file)
@@ -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))