Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e1d18f5

Browse files
author
Thomas Heller
committed
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.
1 parent 4ba6067 commit e1d18f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PC/_winreg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,7 @@ PySetValue(PyObject *self, PyObject *args)
13151315
return NULL;
13161316
if (typ != REG_SZ) {
13171317
PyErr_SetString(PyExc_TypeError,
1318-
"Type must be win32con.REG_SZ");
1318+
"Type must be _winreg.REG_SZ");
13191319
return NULL;
13201320
}
13211321
/* XXX - need Unicode support */

0 commit comments

Comments
 (0)