diff Modules/bz2module.c @ 28885:671e4e2eec4b legacy-trunk

Applying patch #728656, by logistix, fixing opening of nonexistent bz2 files. Also, included a testcase for this problem.
author Gustavo Niemeyer <gustavo@niemeyer.net>
date Tue, 29 Apr 2003 14:53:08 +0000
parents 64230ee8eea5
children ac487a7f7f2c
line wrap: on
line diff
--- a/Modules/bz2module.c	Tue Apr 29 14:14:58 2003 +0000
+++ b/Modules/bz2module.c	Tue Apr 29 14:53:08 2003 +0000
@@ -1388,7 +1388,7 @@
 			break;
 	}
 	Util_DropReadAhead(self);
-	Py_DECREF(self->file);
+	Py_XDECREF(self->file);
 	self->ob_type->tp_free((PyObject *)self);
 }