4 ms·
This whole wrapper nonsense to get with working with NamedTemporaryFile seems really suspect in general. My gut instinct would be to rewrite the section OP fou
by theli0nheart 7y ago
This whole wrapper nonsense to get with working with NamedTemporaryFile seems really suspect in general.
My gut instinct would be to rewrite the section OP found as a standard NamedTemporaryFile instantiation, then close it manually. The __getattr__ hack feels like a real code smell.