Message274800
| Author |
christian.heimes |
| Recipients |
abarry, alex, christian.heimes, dstufft, giampaolo.rodola, janssen, nemunaire, pitrou, vstinner |
| Date |
2016-09-07.11:43:20 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1473248600.99.0.168755573918.issue27629@psf.upfronthosting.co.za> |
| In-reply-to |
|
| Content |
The patch is incomplete. Please also check that type == SOCK_STREAM. The code can be simplified with a bitmask test:
if sock is not None:
type = sock.type
if type & socket.SOCK_STREAM != socket.SOCK_STREAM:
raise NotImplementedError |
|