Author: Antonio Cuni <anto.c...@gmail.com> Branch: app_main-refactor Changeset: r55510:a8be974432ba Date: 2012-06-08 16:19 +0200 http://bitbucket.org/pypy/pypy/changeset/a8be974432ba/
Log: fix typos diff --git a/pypy/module/sys/initpath.py b/pypy/module/sys/initpath.py --- a/pypy/module/sys/initpath.py +++ b/pypy/module/sys/initpath.py @@ -9,7 +9,7 @@ from pypy.rlib import rpath from pypy.rlib.objectmodel import we_are_translated from pypy.interpreter.gateway import unwrap_spec -from pypy.module.sys.state import get_state +from pypy.module.sys.state import get as get_state platform = sys.platform IS_WINDOWS = sys.platform == 'win32' @@ -138,7 +138,7 @@ def pypy_find_executable(space, executable): return space.wrap(find_executable(executable)) -@unwrap_spec(srcdir='str0') +@unwrap_spec(executable='str0') def pypy_find_stdlib(space, executable): path, prefix = find_stdlib(get_state(space), executable) if path is None: diff --git a/pypy/module/sys/state.py b/pypy/module/sys/state.py --- a/pypy/module/sys/state.py +++ b/pypy/module/sys/state.py @@ -26,7 +26,7 @@ self.w_path = space.newlist([space.wrap(p) for p in path]) -def get_state(space): +def get(space): return space.fromcache(State) class IOState: _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit