Closed fersarr closed 3 years ago
hm interesting, local variables are also not getting renamed in that bigger file I mentioned.
Hi @fersarr, There are two likely reasons for this:
The module uses vars()
, exec()
, locals()
, globals()
or eval()
, which disables all renaming.
from <module> import *
is used, which disables renaming of globals.
Can you narrow it down to one of these?
aha! perfect. Yes, I removed a from <module> import *
and it started renaming everything. Thanks a lot!
Hi, thanks for this really useful tool.
I have been testing it with some of my files and I see that for some files, the function names get changed but for some they don't. Unfortunately I can't paste the one that doesn't get the names changed. Do you have any reason in mind as to why that could be happening? If not, I will put more work into trying to create a working example that I can share.
For this file, however, the functions do get renamed: