@@ -521,8 +521,8 @@ PyHKEY_DetachMethod(PyObject *self, PyObject *args)
521521}
522522
523523static struct PyMethodDef PyHKEY_methods [] = {
524- {"Close" , PyHKEY_CloseMethod , 1 , PyHKEY_Close_doc },
525- {"Detach" , PyHKEY_DetachMethod , 1 , PyHKEY_Detach_doc },
524+ {"Close" , PyHKEY_CloseMethod , METH_VARARGS , PyHKEY_Close_doc },
525+ {"Detach" , PyHKEY_DetachMethod , METH_VARARGS , PyHKEY_Detach_doc },
526526 {NULL }
527527};
528528
@@ -1382,23 +1382,23 @@ PySetValueEx(PyObject *self, PyObject *args)
13821382}
13831383
13841384static struct PyMethodDef winreg_methods [] = {
1385- {"CloseKey" , PyCloseKey , 1 , CloseKey_doc },
1386- {"ConnectRegistry" , PyConnectRegistry , 1 , ConnectRegistry_doc },
1387- {"CreateKey" , PyCreateKey , 1 , CreateKey_doc },
1388- {"DeleteKey" , PyDeleteKey , 1 , DeleteKey_doc },
1389- {"DeleteValue" , PyDeleteValue , 1 , DeleteValue_doc },
1390- {"EnumKey" , PyEnumKey , 1 , EnumKey_doc },
1391- {"EnumValue" , PyEnumValue , 1 , EnumValue_doc },
1392- {"FlushKey" , PyFlushKey , 1 , FlushKey_doc },
1393- {"LoadKey" , PyLoadKey , 1 , LoadKey_doc },
1394- {"OpenKey" , PyOpenKey , 1 , OpenKey_doc },
1395- {"OpenKeyEx" , PyOpenKey , 1 , OpenKeyEx_doc },
1396- {"QueryValue" , PyQueryValue , 1 , QueryValue_doc },
1397- {"QueryValueEx" , PyQueryValueEx , 1 , QueryValueEx_doc },
1398- {"QueryInfoKey" , PyQueryInfoKey , 1 , QueryInfoKey_doc },
1399- {"SaveKey" , PySaveKey , 1 , SaveKey_doc },
1400- {"SetValue" , PySetValue , 1 , SetValue_doc },
1401- {"SetValueEx" , PySetValueEx , 1 , SetValueEx_doc },
1385+ {"CloseKey" , PyCloseKey , METH_VARARGS , CloseKey_doc },
1386+ {"ConnectRegistry" , PyConnectRegistry , METH_VARARGS , ConnectRegistry_doc },
1387+ {"CreateKey" , PyCreateKey , METH_VARARGS , CreateKey_doc },
1388+ {"DeleteKey" , PyDeleteKey , METH_VARARGS , DeleteKey_doc },
1389+ {"DeleteValue" , PyDeleteValue , METH_VARARGS , DeleteValue_doc },
1390+ {"EnumKey" , PyEnumKey , METH_VARARGS , EnumKey_doc },
1391+ {"EnumValue" , PyEnumValue , METH_VARARGS , EnumValue_doc },
1392+ {"FlushKey" , PyFlushKey , METH_VARARGS , FlushKey_doc },
1393+ {"LoadKey" , PyLoadKey , METH_VARARGS , LoadKey_doc },
1394+ {"OpenKey" , PyOpenKey , METH_VARARGS , OpenKey_doc },
1395+ {"OpenKeyEx" , PyOpenKey , METH_VARARGS , OpenKeyEx_doc },
1396+ {"QueryValue" , PyQueryValue , METH_VARARGS , QueryValue_doc },
1397+ {"QueryValueEx" , PyQueryValueEx , METH_VARARGS , QueryValueEx_doc },
1398+ {"QueryInfoKey" , PyQueryInfoKey , METH_VARARGS , QueryInfoKey_doc },
1399+ {"SaveKey" , PySaveKey , METH_VARARGS , SaveKey_doc },
1400+ {"SetValue" , PySetValue , METH_VARARGS , SetValue_doc },
1401+ {"SetValueEx" , PySetValueEx , METH_VARARGS , SetValueEx_doc },
14021402 NULL ,
14031403};
14041404
0 commit comments