summaryrefslogtreecommitdiff
path: root/Python/frozen.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-06-28 17:08:35 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2015-06-28 17:08:35 +0300
commitf4590a801412d203b0597424cc6bd6c5f439f6d1 (patch)
treeaa68955d2c13a5186b5e9061c194978aacc8a045 /Python/frozen.c
parent6ea82ec7a7990220fd423ee7a777484dd24089b3 (diff)
parentfbff4549e00af01c17c03daa566002e560113fce (diff)
downloadcpython-f4590a801412d203b0597424cc6bd6c5f439f6d1.tar.gz
Issue #24336: The contextmanager decorator now works with functions with
keyword arguments called "func" and "self". Patch by Martin Panter.
Diffstat (limited to 'Python/frozen.c')
-rw-r--r--Python/frozen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/frozen.c b/Python/frozen.c
index 9bc662b994..676f395488 100644
--- a/Python/frozen.c
+++ b/Python/frozen.c
@@ -3,6 +3,7 @@
#include "Python.h"
#include "importlib.h"
+#include "importlib_external.h"
/* In order to test the support for frozen modules, by default we
define a single frozen module, __hello__. Loading it will print
@@ -31,6 +32,8 @@ static unsigned char M___hello__[] = {
static const struct _frozen _PyImport_FrozenModules[] = {
/* importlib */
{"_frozen_importlib", _Py_M__importlib, (int)sizeof(_Py_M__importlib)},
+ {"_frozen_importlib_external", _Py_M__importlib_external,
+ (int)sizeof(_Py_M__importlib_external)},
/* Test module */
{"__hello__", M___hello__, SIZE},
/* Test package (negative size indicates package-ness) */