forked from M-Labs/artiq
use FutureWarning instead of DeprecationWarning
DeprecationWarning is disabled by default and too easy to ignore.
This commit is contained in:
parent
9793632282
commit
48a142ed63
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue