compat.fifo: fix _FIFOInterface deprecation wrapper.
authorwhitequark <whitequark@whitequark.org>
Sat, 26 Jan 2019 18:23:58 +0000 (18:23 +0000)
committerwhitequark <whitequark@whitequark.org>
Sat, 26 Jan 2019 18:23:58 +0000 (18:23 +0000)
nmigen/compat/genlib/fifo.py

index 896b26be4b95dc53015f7203492ea3fd485a498d..4e412d347425e515117bb83b3a44de735e28b147 100644 (file)
@@ -6,8 +6,8 @@ from ...lib.fifo import FIFOInterface as NativeFIFOInterface, \
 __all__ = ["_FIFOInterface", "SyncFIFO", "SyncFIFOBuffered", "AsyncFIFO", "AsyncFIFOBuffered"]
 
 
-@deprecated("attribute `fwft` must be provided to FIFOInterface constructor")
 class CompatFIFOInterface(NativeFIFOInterface):
+    @deprecated("attribute `fwft` must be provided to FIFOInterface constructor")
     def __init__(self, width, depth):
         super().__init__(width, depth, fwft=False)
         del self.fwft