[issue42756] smtplib.LMTP.connect() raises TypeError if `timeout` is not specified

2020-12-29 Thread Wüstengecko
Wüstengecko added the comment: Hello, I can confirm that the PR resolves the issue. Thanks for the quick fix! -- ___ Python tracker <https://bugs.python.org/issue42

[issue42756] smtplib.LMTP.connect() raises TypeError if `timeout` is not specified

2020-12-27 Thread Wüstengecko
New submission from Wüstengecko : Since Python 3.9, calling `smtplib.LMTP.connect()` without explicitly specifying any `timeout=` raises a `TypeError`. Specifying `None` or any integer value works correctly. ``` >>> import smtplib >>> smtplib.LMTP("/tmp/lmtp.sock")