Message362920
Attached patch is based on Ronald Oussoren's and Alan Robertson's comments: Initialise self.socket to None early in __init()__, and then check for None in close() and emit(). Passes make test on 3.9, 3.8 and 3.7.
If this solution is ok I'll add a unit test for the case that triggered this report and prepare a PR. |
|
Date |
User |
Action |
Args |
2020-02-28 22:00:50 | erlendaasland | set | recipients:
+ erlendaasland, vinay.sajip, ronaldoussoren, jaraco, ned.deily, alanr |
2020-02-28 22:00:50 | erlendaasland | set | messageid: <1582927250.27.0.693216141205.issue38780@roundup.psfhosted.org> |
2020-02-28 22:00:50 | erlendaasland | link | issue38780 messages |
2020-02-28 22:00:50 | erlendaasland | create | |
|