]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport:
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 2 Feb 2003 19:26:25 +0000 (19:26 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 2 Feb 2003 19:26:25 +0000 (19:26 +0000)
revision 1.14
date: 2003/01/15 23:38:15;  author: mhammond;  state: Exp;  lines: +1 -1
Correct docstring for SetValueEx()

revision 1.13
date: 2002/12/20 20:13:35;  author: theller;  state: Exp;  lines: +1 -1
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.

PC/_winreg.c

index edfadac77ca4ae2e9882e7cf5edeae8824e9b524..98941e636b7d32c8d39eb21e7fb943fc82c46d2b 100644 (file)
@@ -259,7 +259,7 @@ static char SetValueEx_doc[] =
 "SetValueEx(key, value_name, reserved, type, value) - Stores data in the value field of an open registry key.\n"
 "\n"
 "key is an already open key, or any one of the predefined HKEY_* constants.\n"
-"sub_key is a string that names the subkey with which the value is associated.\n"
+"value_name is a string containing the name of the value to set, or None\n"
 "type is an integer that specifies the type of the data.  This should be one of:\n"
 "  REG_BINARY -- Binary data in any form.\n"
 "  REG_DWORD -- A 32-bit number.\n"
@@ -1316,7 +1316,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 */