[pypy-commit] pypy pythoninspect-fix: try using RPython os.getenv instead of LL version

squeaky noreply at buildbot.pypy.org
Thu Jul 25 22:45:48 CEST 2013


Author: Paweł Piotr Przeradowski <przeradowski at gmail.com>
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))


More information about the pypy-commit mailing list