Author: Paweł Piotr Przeradowski <przeradow...@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 -@unwrap_spec(name=str) +@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)) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit