not using DeprecationWarning because it is ignored by default

release/4.3a0
Matthew Broadway 2019-03-07 10:11:01 +00:00
parent 7161c04610
commit 9b80f4b158
1 changed files with 1 additions and 1 deletions

View File

@ -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