Join GitHub today
Update agent.py to prevent ResourceWarning #459
Wish the git history was clearer, looks like that commented-out line was added with the original agent support itself - so it's unclear why the original author apparently had the idea to do this, then decided not to at the end.
My guess, looking at the module, is it was a (crappy) defense against closing prior to actual connectivity (i.e. creating the agent, then calling
Feels like we could amend your PR to say