summaryrefslogtreecommitdiff
path: root/Include/import.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-03-20 01:50:21 +0100
committerVictor Stinner <victor.stinner@haypocalc.com>2011-03-20 01:50:21 +0100
commit53dc735168c876b5ed2e4553965014b07c03904e (patch)
treeb0e1b62f23c2685564485e4ceb7d637ed7f1bd0e /Include/import.h
parent9464d61cbab6560e9c8f7278c701cfe47d5287fa (diff)
downloadcpython-git-53dc735168c876b5ed2e4553965014b07c03904e.tar.gz
Issue #3080: Add PyImport_ImportFrozenModuleObject()
find_frozen(), get_frozen_object(), is_frozen_package() and other functions related to frozen modules use Unicode strings instead of byte strings.
Diffstat (limited to 'Include/import.h')
-rw-r--r--Include/import.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/import.h b/Include/import.h
index f2d79b8049..2d45238f0a 100644
--- a/Include/import.h
+++ b/Include/import.h
@@ -58,6 +58,9 @@ PyAPI_FUNC(PyObject *) PyImport_GetImporter(PyObject *path);
PyAPI_FUNC(PyObject *) PyImport_Import(PyObject *name);
PyAPI_FUNC(PyObject *) PyImport_ReloadModule(PyObject *m);
PyAPI_FUNC(void) PyImport_Cleanup(void);
+PyAPI_FUNC(int) PyImport_ImportFrozenModuleObject(
+ PyObject *name
+ );
PyAPI_FUNC(int) PyImport_ImportFrozenModule(
char *name /* UTF-8 encoded string */
);