[pypy-commit] pypy pythoninspect-fix: no None allowed

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


Author: Paweł Piotr Przeradowski <przeradowski at gmail.com>
Branch: pythoninspect-fix
Changeset: r65667:0f1dbffcb578
Date: 2013-07-24 21:46 +0200
http://bitbucket.org/pypy/pypy/changeset/0f1dbffcb578/

Log:	no None allowed

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
@@ -3,7 +3,7 @@
 from pypy.interpreter.gateway import unwrap_spec
 
 
- at unwrap_spec(name=str)
+ at unwrap_spec(name='str0')
 def real_getenv(space, name):
     """Get an OS environment value skipping Python cache"""
-    return space.wrap(os.getenv(name))
+    return space.wrap(os.environ.get(name))


More information about the pypy-commit mailing list