diff options
author | Charles-François Natali <cf.natali@gmail.com> | 2013-05-21 08:45:46 (GMT) |
---|---|---|
committer | Charles-François Natali <cf.natali@gmail.com> | 2013-05-21 08:45:46 (GMT) |
commit | b10c71daa2099c450101e5854fd693a405bec49c (patch) | |
tree | 204a6ff70430da1d2d5c00f7a0c3f3b3f38007d4 /Modules | |
parent | c7c333d25d258187d71b6658e90796daba708912 (diff) | |
download | cpython-b10c71daa2099c450101e5854fd693a405bec49c.zip cpython-b10c71daa2099c450101e5854fd693a405bec49c.tar.gz cpython-b10c71daa2099c450101e5854fd693a405bec49c.tar.bz2 |
Backed out changeset c0f2b038fc12
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/socketmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index ae2924c..20db3d9 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -1018,7 +1018,7 @@ makesockaddr(SOCKET_T sockfd, struct sockaddr *addr, size_t addrlen, int proto) #ifdef linux if (a->sun_path[0] == 0) { /* Linux abstract namespace */ addrlen -= offsetof(struct sockaddr_un, sun_path); - return PyUnicode_DecodeFSDefaultAndSize(a->sun_path, addrlen); + return PyBytes_FromStringAndSize(a->sun_path, addrlen); } else #endif /* linux */ |