New comment on pull request:

https://bitbucket.org/pypy/pypy/pull-request/43/sprint-fixes-for-py3k-modules#comment-3871

Preston Timmons (prestontimmons) said:

Thanks! To clarify:

If I understand it, the below function tries to call decode on the py3k string 
returned by getcwd, which won't work. 

I should have posix systems use the codecs module to decode the string to the 
filesystem encoding.

{{{
#!python

def getcwdu(space):
    """Return the current working directory as a unicode string."""
    filesystemencoding = space.sys.filesystemencoding
    return space.call_method(getcwd(space), 'decode',
                             space.wrap(filesystemencoding))
}}}

--
This is a pull request comment notification from bitbucket.org.
You are receiving this either because you are participating
in a pull request, or you are following it.
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to