From 031b84be34d95989cdff533def8375718b16ddad Mon Sep 17 00:00:00 2001 From: StellarisW Date: Fri, 8 Nov 2024 11:13:03 +0800 Subject: [PATCH] fix: sub module conflict error --- thriftpy2/parser/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thriftpy2/parser/__init__.py b/thriftpy2/parser/__init__.py index f0921dc..07d619b 100644 --- a/thriftpy2/parser/__init__.py +++ b/thriftpy2/parser/__init__.py @@ -171,7 +171,7 @@ def get_definition(thrift, name, lineno): def load_fp(source, module_name): """Load thrift file like object as a module. """ - thrift = parse_fp(source, module_name) + thrift = parse_fp(source, module_name, enable_cache=False) sys.modules[module_name] = thrift return thrift