aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-04-16 10:46:38 +0300
committerGitHub <noreply@github.com>2017-04-16 10:46:38 +0300
commit55fe1ae9708d81b902b6fe8f6590e2a24b1bd4b0 (patch)
treec1b3aacf87240d393666321d49a5abde3e1d601f /Modules/_gdbmmodule.c
parentbpo-10076: Compiled regular expression and match objects now are copyable. (#... (diff)
downloadcpython-55fe1ae9708d81b902b6fe8f6590e2a24b1bd4b0.tar.gz
cpython-55fe1ae9708d81b902b6fe8f6590e2a24b1bd4b0.tar.bz2
cpython-55fe1ae9708d81b902b6fe8f6590e2a24b1bd4b0.zip
bpo-30022: Get rid of using EnvironmentError and IOError (except test… (#1051)
Diffstat (limited to 'Modules/_gdbmmodule.c')
-rw-r--r--Modules/_gdbmmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_gdbmmodule.c b/Modules/_gdbmmodule.c
index 54a65664220..12d973b5cee 100644
--- a/Modules/_gdbmmodule.c
+++ b/Modules/_gdbmmodule.c
@@ -649,7 +649,7 @@ PyInit__gdbm(void) {
if (m == NULL)
return NULL;
d = PyModule_GetDict(m);
- DbmError = PyErr_NewException("_gdbm.error", PyExc_IOError, NULL);
+ DbmError = PyErr_NewException("_gdbm.error", PyExc_OSError, NULL);
if (DbmError != NULL) {
PyDict_SetItemString(d, "error", DbmError);
s = PyUnicode_FromString(dbmmodule_open_flags);