diff Python/dynload_win.c @ 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 7a32b9380ffd
children 38d7d944370e
line wrap: on
line diff
--- a/Python/dynload_win.c	Fri May 04 13:52:49 2012 -0400
+++ b/Python/dynload_win.c	Fri May 04 15:20:40 2012 -0400
@@ -15,13 +15,13 @@
 extern ULONG_PTR _Py_ActivateActCtx();
 void _Py_DeactivateActCtx(ULONG_PTR cookie);
 
-const struct filedescr _PyImport_DynLoadFiletab[] = {
+const char *_PyImport_DynLoadFiletab[] = {
 #ifdef _DEBUG
-    {"_d.pyd", "rb", C_EXTENSION},
+    "_d.pyd",
 #else
-    {".pyd", "rb", C_EXTENSION},
+    ".pyd",
 #endif
-    {0, 0}
+    NULL
 };