Skip to content

Commit bed212b

Browse files
committed
Readd error for backwards compatibility
1 parent d2effdc commit bed212b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ that PyPy is no longer supported.
3131
faster.
3232
+ igzip.decompress has 30% less overhead when called.
3333
+ ``isal_zlib`` functions now raise ``isal_zlib.error`` on error.
34-
``isal_zlib.IsalError`` has been removed.
3534
+ The base class for ``isal_zlib.error`` and ``igzip_lib.IsalError`` is now
3635
``Exception`` instead of ``OSError``.
3736
+ GzipReader now uses larger input and output buffers (128k) by default and

src/isal/isal_zlib.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,6 +1190,11 @@ PyInit_isal_zlib(void)
11901190
return NULL;
11911191
}
11921192

1193+
Py_INCREF(IsalError);
1194+
if (PyModule_AddObject(m, "IsalError", IsalError) < 0) {
1195+
return NULL;
1196+
}
1197+
11931198
PyTypeObject *Comptype = (PyTypeObject *)&IsalZlibCompType;
11941199
if (PyType_Ready(Comptype) != 0) {
11951200
return NULL;

0 commit comments

Comments
 (0)