diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-11-03 15:11:53 -0500 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-11-03 15:11:53 -0500 |
commit | c84f5e48d5387cbcb779c9354132bb6a48d07ea3 (patch) | |
tree | eea40c044a2802b7112691f1614766faea81af2e /Python/frozen.c | |
parent | 41540bf9aa1b0dfb206088945acfd7bb74d440d0 (diff) | |
parent | 00261b71a55839b4b53a50d7ab7b416110570d10 (diff) | |
download | cpython-c84f5e48d5387cbcb779c9354132bb6a48d07ea3.tar.gz |
merge 3.2
Diffstat (limited to 'Python/frozen.c')
-rw-r--r-- | Python/frozen.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/frozen.c b/Python/frozen.c index ddf6224e6d..25fdc17b3f 100644 --- a/Python/frozen.c +++ b/Python/frozen.c @@ -2,6 +2,7 @@ /* Dummy frozen modules initializer */ #include "Python.h" +#include "importlib.h" /* In order to test the support for frozen modules, by default we define a single frozen module, __hello__. Loading it will print @@ -28,6 +29,8 @@ static unsigned char M___hello__[] = { #define SIZE (int)sizeof(M___hello__) static struct _frozen _PyImport_FrozenModules[] = { + /* importlib */ + {"_frozen_importlib", _Py_M__importlib, (int)sizeof(_Py_M__importlib)}, /* Test module */ {"__hello__", M___hello__, SIZE}, /* Test package (negative size indicates package-ness) */ |