[Python-checkins] python/dist/src/PC _winreg.c,1.8,1.8.26.1
nnorwitz@users.sourceforge.net
nnorwitz@users.sourceforge.net
Sun, 02 Feb 2003 11:26:28 -0800
Update of /cvsroot/python/python/dist/src/PC
In directory sc8-pr-cvs1:/tmp/cvs-serv20494/PC
Modified Files:
Tag: release22-maint
_winreg.c
Log Message:
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.
Index: _winreg.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/PC/_winreg.c,v
retrieving revision 1.8
retrieving revision 1.8.26.1
diff -C2 -d -r1.8 -r1.8.26.1
*** _winreg.c 28 Jul 2000 03:44:41 -0000 1.8
--- _winreg.c 2 Feb 2003 19:26:25 -0000 1.8.26.1
***************
*** 260,264 ****
"\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"
"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"
--- 260,264 ----
"\n"
"key is an already open key, or any one of the predefined HKEY_* constants.\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"
***************
*** 1317,1321 ****
if (typ != REG_SZ) {
PyErr_SetString(PyExc_TypeError,
! "Type must be win32con.REG_SZ");
return NULL;
}
--- 1317,1321 ----
if (typ != REG_SZ) {
PyErr_SetString(PyExc_TypeError,
! "Type must be _winreg.REG_SZ");
return NULL;
}