Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0073f2e commit ba2cf07Copy full SHA for ba2cf07
1 file changed
Python/codecs.c
@@ -822,7 +822,7 @@ void _PyCodecRegistry_Init(void)
822
_PyCodec_ErrorRegistry = PyDict_New();
823
824
if (_PyCodec_ErrorRegistry) {
825
- for (i = 0; i < 5; ++i) {
+ for (i = 0; i < sizeof(methods)/sizeof(methods[0]); ++i) {
826
PyObject *func = PyCFunction_New(&methods[i].def, NULL);
827
int res;
828
if (!func)
0 commit comments