We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d9fe5e commit 39f8a7dCopy full SHA for 39f8a7d
tools/export/exporters.py
@@ -25,6 +25,18 @@ def __init__(self, func):
25
def __get__(self, inst, cls):
26
return self.func(cls)
27
28
+def deprecated_exporter(CLS):
29
+ old_init = CLS.__init__
30
+ old_name = CLS.NAME
31
+ def __init__(*args, **kwargs):
32
+ print("==================== DEPRECATION NOTICE ====================")
33
+ print("The exporter %s is no longer maintained, and deprecated." % old_name)
34
+ print("%s will be removed from mbed OS for the mbed OS 5.6 release." % old_name)
35
+ old_init(*args, **kwargs)
36
+ CLS.__init__ = __init__
37
+ CLS.NAME = "%s (DEPRECATED)" % old_name
38
+ return CLS
39
+
40
class Exporter(object):
41
"""Exporter base class
42
0 commit comments