Backport of r64767 from trunk
Fixes Issue #3309: Fix bz2.BZFile iterator to release its internal lock
properly when raising an exception due to the bz2file being closed.
Prevents a deadlock.
diff --git a/Misc/NEWS b/Misc/NEWS
index 8864aa9..23c2384 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -148,6 +148,10 @@
up in the child process to prevent deadlock and report proper thread counts
if the new process uses the threading module.
+- Issue #3309: Fix bz2.BZFile iterator to release its internal lock
+ properly when raising an exception due to the bz2file being closed.
+ Prevents a deadlock.
+
Extension Modules
-----------------