From 48a142ed6335c3687775a8197e817d081d7bf120 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 21 Oct 2018 12:14:51 +0800 Subject: [PATCH] use FutureWarning instead of DeprecationWarning DeprecationWarning is disabled by default and too easy to ignore. --- artiq/gateware/rtio/channel.py | 2 +- artiq/language/environment.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/gateware/rtio/channel.py b/artiq/gateware/rtio/channel.py index 5e85a1add..d7b9a60e4 100644 --- a/artiq/gateware/rtio/channel.py +++ b/artiq/gateware/rtio/channel.py @@ -17,7 +17,7 @@ class Channel: if ofifo_depth is None: ofifo_depth = 64 else: - warnings.warn("ofifo_depth is deprecated", DeprecationWarning) + warnings.warn("ofifo_depth is deprecated", FutureWarning) self.ofifo_depth = ofifo_depth self.ififo_depth = ififo_depth diff --git a/artiq/language/environment.py b/artiq/language/environment.py index b7db5d54d..5eb4e8d81 100644 --- a/artiq/language/environment.py +++ b/artiq/language/environment.py @@ -303,7 +303,7 @@ class HasEnvironment: """ if save is not None: warnings.warn("set_dataset save parameter is deprecated, " - "use archive instead", DeprecationWarning) + "use archive instead", FutureWarning) archive = save self.__dataset_mgr.set(key, value, broadcast, persist, archive)