From: Paul Vinciguerra Date: Thu, 14 Mar 2019 13:52:31 +0000 (-0700) Subject: Add @deprecated decorator. X-Git-Tag: v19.04-rc1~209 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=4ba4edd15085ce31145ef5da6342e435c57c1150;hp=4ba4edd15085ce31145ef5da6342e435c57c1150;p=vpp.git Add @deprecated decorator. import deprecation @deprecation.deprecated(deprecated_in="1.0", removed_in="2.0", current_version=__version__, details="Use the bar function instead") def foo(): """Do some stuff""" return 1 Change-Id: Ib2ec5dd90445c9967eb39dbf6543cafd48b7f866 Signed-off-by: Paul Vinciguerra ---