diff --git a/thriftpy2/parser/__init__.py b/thriftpy2/parser/__init__.py index 2f4ff2c..03c96ce 100644 --- a/thriftpy2/parser/__init__.py +++ b/thriftpy2/parser/__init__.py @@ -181,7 +181,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