[Python-checkins] python/dist/src/Python import.c,2.217,2.218
nnorwitz@users.sourceforge.net
nnorwitz@users.sourceforge.net
Wed, 12 Feb 2003 15:02:24 -0800
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv2792/Python
Modified Files:
import.c
Log Message:
Cleanup from patch #683257:
Add missing INCREFs and re-indent returns to be consistent.
Add \n\ for lines in docstring
Add a pathetic test
Add docs
Index: import.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/import.c,v
retrieving revision 2.217
retrieving revision 2.218
diff -C2 -d -r2.217 -r2.218
*** import.c 12 Feb 2003 21:45:27 -0000 2.217
--- import.c 12 Feb 2003 23:02:19 -0000 2.218
***************
*** 306,310 ****
lock_import();
#endif
! return Py_None;
}
--- 306,311 ----
lock_import();
#endif
! Py_INCREF(Py_None);
! return Py_None;
}
***************
*** 321,325 ****
}
#endif
! return Py_None;
}
--- 322,327 ----
}
#endif
! Py_INCREF(Py_None);
! return Py_None;
}
***************
*** 2779,2784 ****
PyDoc_STRVAR(doc_acquire_lock,
"acquire_lock() -> None\n\
! Acquires the interpreter's import lock for the current thread. This lock
! should be used by import hooks to ensure thread-safety when importing modules.
On platforms without threads, this function does nothing.");
--- 2781,2787 ----
PyDoc_STRVAR(doc_acquire_lock,
"acquire_lock() -> None\n\
! Acquires the interpreter's import lock for the current thread.\n\
! This lock should be used by import hooks to ensure thread-safety\n\
! when importing modules.\n\
On platforms without threads, this function does nothing.");