Imp.configure command is deprecated. Should I worry?

I believe this is due to I put function inside another function in Agent.
After that there is message of “imp.configure command is deprecated” shows up in the log.

Should I do something to fix this? Or I could just let it be.

If I have to fix, how can I change my way of doing thing?
The reason I put function inside another function is because I need to go back to the first function, but only execute part of it, that where second function comes in play. Is there another way to do this?

Thank you very much,

This is because you are using imp.configure(). This is no longer necessary, so you can remove it from your code totally.

It’s not to do with nesting of functions.

Thank you!