diff options
Diffstat (limited to 'Modules/pcremodule.c')
-rw-r--r-- | Modules/pcremodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/pcremodule.c b/Modules/pcremodule.c index 901f674..6fb2d07 100644 --- a/Modules/pcremodule.c +++ b/Modules/pcremodule.c @@ -654,7 +654,7 @@ initpcre() /* Add some symbolic constants to the module */ d = PyModule_GetDict(m); - ErrorObject = PyString_FromString("pcre.error"); + ErrorObject = PyErr_NewException("pcre.error", NULL, NULL); PyDict_SetItemString(d, "error", ErrorObject); /* Insert the flags */ |