From e2383ff7820c4bfd2d3a395c7994083d4c37e76e Mon Sep 17 00:00:00 2001 From: Alexander Taylor Date: Tue, 27 Jun 2023 19:39:31 -0400 Subject: Deprecate standalone preprocess API function. --- python/typeparser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python/typeparser.py') 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]: """ -- cgit v1.3.1