homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lorenzo.ancora
Recipients lorenzo.ancora
Date 2016年01月26日.20:34:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1453840478.59.0.371405366995.issue26209@psf.upfronthosting.co.za>
In-reply-to
Content
smtpd.PureProxy(localaddr="host1", remoteaddr="host2")
...produces the error:
[...] smtpd.py", line 657, in __init__
 gai_results = socket.getaddrinfo(*localaddr, type=socket.SOCK_STREAM)
TypeError: getaddrinfo() got multiple values for argument 'type'
The module only works with:
smtpd.PureProxy(localaddr=("host1", 25), remoteaddr=("host2", 25))
The documentation does not specify the format of the INPUT parameters, only the CLI syntax with hostnames as "host:port" strings.
The underlying library should convert them to tuples or at least the documentation should be completed.
History
Date User Action Args
2016年01月26日 20:34:38lorenzo.ancorasetrecipients: + lorenzo.ancora
2016年01月26日 20:34:38lorenzo.ancorasetmessageid: <1453840478.59.0.371405366995.issue26209@psf.upfronthosting.co.za>
2016年01月26日 20:34:38lorenzo.ancoralinkissue26209 messages
2016年01月26日 20:34:38lorenzo.ancoracreate

AltStyle によって変換されたページ (->オリジナル) /