Author: Paweł Piotr Przeradowski <[email protected]>
Branch: pythoninspect-fix
Changeset: r65666:9a20d5ede0ec
Date: 2013-07-24 08:45 +0200
http://bitbucket.org/pypy/pypy/changeset/9a20d5ede0ec/
Log: try using RPython os.getenv instead of LL version
diff --git a/pypy/module/__pypy__/interp_os.py
b/pypy/module/__pypy__/interp_os.py
--- a/pypy/module/__pypy__/interp_os.py
+++ b/pypy/module/__pypy__/interp_os.py
@@ -1,4 +1,4 @@
-from rpython.rtyper.module.ll_os_environ import getenv_llimpl
+import os
from pypy.interpreter.gateway import unwrap_spec
@@ -6,4 +6,4 @@
@unwrap_spec(name=str)
def real_getenv(space, name):
"""Get an OS environment value skipping Python cache"""
- return space.wrap(getenv_llimpl(name))
+ return space.wrap(os.getenv(name))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit