[pypy-commit] pypy py3k: followup 1a0b1ff00ed7: fsdecode on the way out

pjenvey pypy.commits at gmail.com
Fri May 20 20:18:49 EDT 2016


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r84547:17eb2b4a23ee
Date: 2016-05-20 17:18 -0700
http://bitbucket.org/pypy/pypy/changeset/17eb2b4a23ee/

Log:	followup 1a0b1ff00ed7: fsdecode on the way out

diff --git a/pypy/module/_socket/interp_socket.py b/pypy/module/_socket/interp_socket.py
--- a/pypy/module/_socket/interp_socket.py
+++ b/pypy/module/_socket/interp_socket.py
@@ -39,7 +39,7 @@
             # Linux abstract namespace
             return space.wrapbytes(path)
         else:
-            return space.wrap(path)
+            return space.wrap_fsdecoded(path)
     elif rsocket.HAS_AF_NETLINK and isinstance(addr, rsocket.NETLINKAddress):
         return space.newtuple([space.wrap(addr.get_pid()),
                                space.wrap(addr.get_groups())])


More information about the pypy-commit mailing list