From: Neal Norwitz Date: Sun, 2 Feb 2003 19:26:25 +0000 (+0000) Subject: backport: X-Git-Tag: v2.2.3c1~156 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=421535989aa925a70d548d2e9a7c2cefd7bc8997;p=thirdparty%2FPython%2Fcpython.git backport: 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. --- diff --git a/PC/_winreg.c b/PC/_winreg.c index edfadac77ca4..98941e636b7d 100644 --- a/PC/_winreg.c +++ b/PC/_winreg.c @@ -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 */