2
0
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:
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:
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

View File

@ -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)