Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r89108:51d7e78bf66c Date: 2016-12-17 09:33 +0100 http://bitbucket.org/pypy/pypy/changeset/51d7e78bf66c/
Log: Translation fix diff --git a/pypy/module/cpyext/import_.py b/pypy/module/cpyext/import_.py --- a/pypy/module/cpyext/import_.py +++ b/pypy/module/cpyext/import_.py @@ -131,16 +131,14 @@ in different threads to return with a partially loaded module. These calls are serialized by the global interpreter lock.""" try: - w_func = space.getbuiltinmodule('imp').get('acquire_lock') - space.call_function(w_func) + space.call_method(space.getbuiltinmodule('imp'), 'acquire_lock') except OperationError as e: e.write_unraisable(space, "_PyImport_AcquireLock") @cpython_api([], rffi.INT_real, error=CANNOT_FAIL) def _PyImport_ReleaseLock(space): try: - w_func = space.getbuiltinmodule('imp').get('release_lock') - space.call_function(w_func) + space.call_method(space.getbuiltinmodule('imp'), 'release_lock') return 1 except OperationError as e: e.write_unraisable(space, "_PyImport_ReleaseLock") _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit