Skip to content

Commit

Permalink
fix: sub module conflict error
Browse files Browse the repository at this point in the history
  • Loading branch information
StellarisW committed Nov 8, 2024
1 parent f7fdb87 commit 591325f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thriftpy2/parser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def load(path,
while include_thrifts:
include_thrift = include_thrifts.pop()
lost_sub_modules = [
m for m in thrift.__thrift_meata__["sub_modules"] if m not in sys.modules
m for m in thrift.__thrift_meta__["sub_modules"] if m not in sys.modules
]
for module in lost_sub_modules:
sys.modules[module.__name__] = include_thrift
Expand Down

0 comments on commit 591325f

Please sign in to comment.