mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 03:08:27 +08:00
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:
|
||||
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
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user