summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAlexander Taylor <alex@vector35.com>2023-06-27 19:39:31 -0400
committerAlexander Taylor <alex@vector35.com>2023-06-27 19:43:10 -0400
commite2383ff7820c4bfd2d3a395c7994083d4c37e76e (patch)
treef97c570351d720fced6f74c952fc24d71393cd57 /python
parentf2430c57b19d1ff3fb4bcaf2f8c511e4d2a05d56 (diff)
Deprecate standalone preprocess API function.
Diffstat (limited to 'python')
-rw-r--r--python/typeparser.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/typeparser.py b/python/typeparser.py
index 13a2dd38..09447987 100644
--- a/python/typeparser.py
+++ b/python/typeparser.py
@@ -34,6 +34,7 @@ import binaryninja._binaryninjacore as core
from .settings import Settings
from . import platform
from . import types
+from . import deprecation
from .log import log_error
from .enums import TypeParserErrorSeverity, TypeParserOption
@@ -631,7 +632,7 @@ class CoreTypeParser(TypeParser):
return result, errors
-
+@deprecation.deprecated(deprecated_in="3.4.4271", details="Use TypeParser.preprocess_source instead.")
def preprocess_source(source: str, filename: str = None,
include_dirs: Optional[List[str]] = None) -> Tuple[Optional[str], str]:
"""