not using DeprecationWarning because it is ignored by default
parent
7161c04610
commit
9b80f4b158
|
@ -9,7 +9,7 @@ try:
|
||||||
from warnings import warn
|
from warnings import warn
|
||||||
message = ('importing the unstable item "{}" directly from gtsam is deprecated. '.format(name) +
|
message = ('importing the unstable item "{}" directly from gtsam is deprecated. '.format(name) +
|
||||||
'Please import it from gtsam_unstable.')
|
'Please import it from gtsam_unstable.')
|
||||||
warn(message, category=DeprecationWarning)
|
warn(message)
|
||||||
return item(*args, **kwargs)
|
return item(*args, **kwargs)
|
||||||
return wrapper
|
return wrapper
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue