[pypy-commit] pypy more-rposix: Fix translation
amauryfa
noreply at buildbot.pypy.org
Wed Nov 5 20:04:38 CET 2014
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: more-rposix
Changeset: r74345:85b8060d8eaa
Date: 2014-11-05 17:48 +0100
http://bitbucket.org/pypy/pypy/changeset/85b8060d8eaa/
Log: Fix translation
diff --git a/rpython/rlib/rposix.py b/rpython/rlib/rposix.py
--- a/rpython/rlib/rposix.py
+++ b/rpython/rlib/rposix.py
@@ -175,8 +175,9 @@
@specialize.argtype(0)
def _as_bytes0(path):
+ """Crashes translation if the path contains NUL characters."""
res = _as_bytes(path)
- rstring.check_str0(path)
+ rstring.check_str0(res)
return res
@specialize.argtype(0)
@@ -189,8 +190,9 @@
@specialize.argtype(0)
def _as_unicode0(path):
+ """Crashes translation if the path contains NUL characters."""
res = _as_unicode(path)
- rstring.check_str0(path)
+ rstring.check_str0(res)
return res
# Returns True when the unicode function should be called:
More information about the pypy-commit
mailing list