]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix an error message in the _winreg module. The error message referred
authorThomas Heller <theller@ctypes.org>
Fri, 20 Dec 2002 20:13:35 +0000 (20:13 +0000)
committerThomas Heller <theller@ctypes.org>
Fri, 20 Dec 2002 20:13:35 +0000 (20:13 +0000)
to a constant in the 'win32con' module, but this constant is also
defined in the _winreg module itself.

Bugfix candidate.

PC/_winreg.c

index 07190ec5ecbd032c0973a8395994d3a5fb28a0f3..cbf30fc7aedfd80bb89bb1d8d005508d0da1d75a 100644 (file)
@@ -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 */