From 9b80f4b15865346d57a82bef44ccd59e191aaca9 Mon Sep 17 00:00:00 2001 From: Matthew Broadway Date: Thu, 7 Mar 2019 10:11:01 +0000 Subject: [PATCH] not using DeprecationWarning because it is ignored by default --- cython/gtsam/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cython/gtsam/__init__.py b/cython/gtsam/__init__.py index f27c6fa44..d40ee4502 100644 --- a/cython/gtsam/__init__.py +++ b/cython/gtsam/__init__.py @@ -9,7 +9,7 @@ try: from warnings import warn message = ('importing the unstable item "{}" directly from gtsam is deprecated. '.format(name) + 'Please import it from gtsam_unstable.') - warn(message, category=DeprecationWarning) + warn(message) return item(*args, **kwargs) return wrapper