diff options
Diffstat (limited to 'Modules/_dbmmodule.c')
-rw-r--r-- | Modules/_dbmmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_dbmmodule.c b/Modules/_dbmmodule.c index 4b3fac4..7e13441 100644 --- a/Modules/_dbmmodule.c +++ b/Modules/_dbmmodule.c @@ -483,7 +483,7 @@ PyInit__dbm(void) { d = PyModule_GetDict(m); if (DbmError == NULL) DbmError = PyErr_NewException("_dbm.error", - PyExc_IOError, NULL); + PyExc_OSError, NULL); s = PyUnicode_FromString(which_dbm); if (s != NULL) { PyDict_SetItemString(d, "library", s); |