From 5f6861df9300f455d600b6cd237faf429d9a06b0 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 28 May 2006 21:57:35 +0000 Subject: Correct None refcount issue in Mac modules. (Are they still used?) --- Python/import.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python') diff --git a/Python/import.c b/Python/import.c index 1a71b5cf6b..c49a91fc6a 100644 --- a/Python/import.c +++ b/Python/import.c @@ -2059,7 +2059,7 @@ PyImport_ImportModuleLevel(char *name, PyObject *globals, PyObject *locals, /* Return the package that an import is being performed in. If globals comes from the module foo.bar.bat (not itself a package), this returns the sys.modules entry for foo.bar. If globals is from a package's __init__.py, - the package's entry in sys.modules is returned. + the package's entry in sys.modules is returned, as a borrowed reference. The *name* of the returned package is returned in buf, with the length of the name in *p_buflen. -- cgit v1.2.1