summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorCharles-François Natali <cf.natali@gmail.com>2013-05-21 08:45:46 (GMT)
committerCharles-François Natali <cf.natali@gmail.com>2013-05-21 08:45:46 (GMT)
commitb10c71daa2099c450101e5854fd693a405bec49c (patch)
tree204a6ff70430da1d2d5c00f7a0c3f3b3f38007d4 /Modules
parentc7c333d25d258187d71b6658e90796daba708912 (diff)
downloadcpython-b10c71daa2099c450101e5854fd693a405bec49c.zip
cpython-b10c71daa2099c450101e5854fd693a405bec49c.tar.gz
cpython-b10c71daa2099c450101e5854fd693a405bec49c.tar.bz2
Backed out changeset c0f2b038fc12
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c2
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 */