From: Florent Kermarrec Date: Mon, 29 Apr 2019 08:12:54 +0000 (+0200) Subject: build/tools: add deprecated_warning X-Git-Tag: 24jan2021_ls180~1259 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4e50f36b727fca005f157c2d49965a78c2dd3490;p=litex.git build/tools: add deprecated_warning --- diff --git a/litex/build/tools.py b/litex/build/tools.py index 50fce460..3de7c6b1 100644 --- a/litex/build/tools.py +++ b/litex/build/tools.py @@ -121,3 +121,8 @@ def generated_banner(line_comment="//"): r += "{}\n".format(datetime.datetime.fromtimestamp(time.time()).strftime("%Y-%m-%d %H:%M:%S")) r += line_comment + "-"*80 + "\n" return r + + +def deprecated_warning(msg): + print("[WARNING] Deprecated, please update " + msg) + time.sleep(2) # annoy user to force update :)