Closed corranwebster closed 2 years ago
Do you know why we need a full
eval
there rather than just agetattr
?
No idea. If I had to guess it would be a hack to allow dotted imports like foo.bar:Bar.baz
, but it would not shock me if it was used for more general things.
Obviously didn't want to touch it since I didn't know the scope of usage, but I'd be happy to see it go if it were safe.
Simple drive-by modernization as I was reading code. Should have no effective change in behaviour.
I can't remove the other import usage easily however as it is doing a
from ... import ...
-style import.