forked from M-Labs/artiq
1
0
Fork 0

use FutureWarning instead of DeprecationWarning

DeprecationWarning is disabled by default and too easy to ignore.
This commit is contained in:
Sebastien Bourdeauducq 2018-10-21 12:14:51 +08:00
parent 9793632282
commit 48a142ed63
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ class Channel:
if ofifo_depth is None: if ofifo_depth is None:
ofifo_depth = 64 ofifo_depth = 64
else: else:
warnings.warn("ofifo_depth is deprecated", DeprecationWarning) warnings.warn("ofifo_depth is deprecated", FutureWarning)
self.ofifo_depth = ofifo_depth self.ofifo_depth = ofifo_depth
self.ififo_depth = ififo_depth self.ififo_depth = ififo_depth

View File

@ -303,7 +303,7 @@ class HasEnvironment:
""" """
if save is not None: if save is not None:
warnings.warn("set_dataset save parameter is deprecated, " warnings.warn("set_dataset save parameter is deprecated, "
"use archive instead", DeprecationWarning) "use archive instead", FutureWarning)
archive = save archive = save
self.__dataset_mgr.set(key, value, broadcast, persist, archive) self.__dataset_mgr.set(key, value, broadcast, persist, archive)