Closed Thoufak closed 5 months ago
Reproduced.
Because function manager
is decorated by contextmanager
, so it's not obfuscated.
I need find one solution for this case.
Thanks.
Now try to exclude it by this way
$ pyarmor cfg assert.call:excludes "manager"
Refer to https://pyarmor.readthedocs.io/en/latest/tutorial/advanced.html#filter-assert-function-and-import
It's a little complicated to auto-exclude this case, so just exclude it manually. In future, when RFT mode is refined, pyarmor may exclude this case automatically.
Command
pyarmor gen test.py --assert-call
Error
test.py file