Kaydet (Commit) 8b9ea873 authored tarafından Guido van Rossum's avatar Guido van Rossum

Use MS_DLL_ID as sys.winver

üst 05797152
...@@ -269,10 +269,10 @@ initsys() ...@@ -269,10 +269,10 @@ initsys()
dictinsert(sysdict, "builtin_module_names", dictinsert(sysdict, "builtin_module_names",
v = list_builtin_module_names()); v = list_builtin_module_names());
XDECREF(v); XDECREF(v);
#ifdef PYTHONWIN #ifdef MS_COREDLL
dictinsert(sysdict, "dllhandle", v = newintobject((int)PyWin_DLLhModule)); dictinsert(sysdict, "dllhandle", v = newintobject((int)PyWin_DLLhModule));
XDECREF(v); XDECREF(v);
dictinsert(sysdict, "winver", v = newstringobject(WIN32_PATCH_LEVEL)); dictinsert(sysdict, "winver", v = newstringobject(MS_DLL_ID));
XDECREF(v); XDECREF(v);
#endif #endif
if (err_occurred()) if (err_occurred())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment