mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
build/tools: add deprecated_warning
This commit is contained in:
parent
b40d1b73c4
commit
4e50f36b72
1 changed files with 5 additions and 0 deletions
|
@ -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 :)
|
||||
|
|
Loading…
Reference in a new issue