mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
closes bpo-37405: Make socket.getsockname() always return a tuple for AF_CAN. (GH-14392)
This fixes a regression from 3.5. In recent releases, `getsockname()` in the AF_CAN case has returned a string.
This commit is contained in:
parent
64535fc6c0
commit
954900a3f9
3 changed files with 6 additions and 2 deletions
|
@ -1563,7 +1563,7 @@ makesockaddr(SOCKET_T sockfd, struct sockaddr *addr, size_t addrlen, int proto)
|
|||
#endif /* CAN_ISOTP */
|
||||
default:
|
||||
{
|
||||
return Py_BuildValue("O&", PyUnicode_DecodeFSDefault,
|
||||
return Py_BuildValue("(O&)", PyUnicode_DecodeFSDefault,
|
||||
ifname);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue