From: Thomas Heller Date: Fri, 20 Dec 2002 20:13:35 +0000 (+0000) Subject: Fix an error message in the _winreg module. The error message referred X-Git-Tag: v2.3c1~2934 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e1d18f52c3e499cfbfe9f17192dbc84a80a57db8;p=thirdparty%2FPython%2Fcpython.git Fix an error message in the _winreg module. The error message referred to a constant in the 'win32con' module, but this constant is also defined in the _winreg module itself. Bugfix candidate. --- diff --git a/PC/_winreg.c b/PC/_winreg.c index 07190ec5ecbd..cbf30fc7aedf 100644 --- a/PC/_winreg.c +++ b/PC/_winreg.c @@ -1315,7 +1315,7 @@ PySetValue(PyObject *self, PyObject *args) return NULL; if (typ != REG_SZ) { PyErr_SetString(PyExc_TypeError, - "Type must be win32con.REG_SZ"); + "Type must be _winreg.REG_SZ"); return NULL; } /* XXX - need Unicode support */