Mercurial > cpython-lru_cache-weakref
diff Python/importdl.h @ 76754:257cbd2fac38
Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py.
This introduces a new function, imp.extension_suffixes(), which is
currently undocumented. That is forthcoming once issue #14657 is
resolved and how to expose file suffixes is decided.
| author | Brett Cannon <brett@python.org> |
|---|---|
| date | Fri, 04 May 2012 15:20:40 -0400 |
| parents | ef2b6305d395 |
| children | 22b0689346f9 |
line wrap: on
line diff
--- a/Python/importdl.h Fri May 04 13:52:49 2012 -0400 +++ b/Python/importdl.h Fri May 04 15:20:40 2012 -0400 @@ -20,13 +20,8 @@ IMP_HOOK }; -struct filedescr { - char *suffix; - char *mode; - enum filetype type; -}; -extern struct filedescr * _PyImport_Filetab; -extern const struct filedescr _PyImport_DynLoadFiletab[]; + +extern const char *_PyImport_DynLoadFiletab[]; extern PyObject *_PyImport_LoadDynamicModule(PyObject *name, PyObject *pathname, FILE *);
