From 8b9ea873ad4bbb6a5d31cff43fc589f6004a4e2e Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 23 Aug 1996 18:14:47 +0000 Subject: [PATCH] Use MS_DLL_ID as sys.winver --- Python/sysmodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 1dc8e177ac8..56d1e6d1028 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -269,10 +269,10 @@ initsys() dictinsert(sysdict, "builtin_module_names", v = list_builtin_module_names()); XDECREF(v); -#ifdef PYTHONWIN +#ifdef MS_COREDLL dictinsert(sysdict, "dllhandle", v = newintobject((int)PyWin_DLLhModule)); XDECREF(v); - dictinsert(sysdict, "winver", v = newstringobject(WIN32_PATCH_LEVEL)); + dictinsert(sysdict, "winver", v = newstringobject(MS_DLL_ID)); XDECREF(v); #endif if (err_occurred())