From 8798ee8d73757ff6935739eb9dbf078b54238955 Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Sun, 5 Apr 2015 03:49:06 -0600 Subject: [PATCH] decorators: fix stacklevel, export in std --- migen/fhdl/decorators.py | 4 ++-- migen/fhdl/std.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/migen/fhdl/decorators.py b/migen/fhdl/decorators.py index 62cda094..ddd1a965 100644 --- a/migen/fhdl/decorators.py +++ b/migen/fhdl/decorators.py @@ -48,11 +48,11 @@ class ModuleTransformer: @classmethod def adhoc(cls, i, *args, **kwargs): - warnings.warn("deprecated, use the plain transformer", DeprecationWarning) + warnings.warn("deprecated, use the plain transformer", DeprecationWarning, 2) return cls(*args, **kwargs)(i) def DecorateModule(transformer, *args, **kwargs): - warnings.warn("deprecated, use the plain transformer", DeprecationWarning) + warnings.warn("deprecated, use the plain transformer", DeprecationWarning, 2) return transformer.__self__(*args, **kwargs) class ControlInserter(ModuleTransformer): diff --git a/migen/fhdl/std.py b/migen/fhdl/std.py index 56bd97bc..a9ac658d 100644 --- a/migen/fhdl/std.py +++ b/migen/fhdl/std.py @@ -3,3 +3,5 @@ from migen.fhdl.module import Module, FinalizeError from migen.fhdl.specials import TSTriple, Instance, Memory from migen.fhdl.bitcontainer import log2_int, bits_for, flen, fiter, fslice, freversed from migen.fhdl.decorators import DecorateModule, InsertCE, InsertReset, RenameClockDomains +from migen.fhdl.decorators import (CEInserter, ResetInserter, + ClockDomainsRenamer, ModuleTransformer) -- 2.30.2