Author: Armin Rigo <[email protected]>
Branch: py3k-faulthandler
Changeset: r87449:acb5b449d753
Date: 2016-09-29 17:45 +0200
http://bitbucket.org/pypy/pypy/changeset/acb5b449d753/
Log: fix
diff --git a/pypy/module/faulthandler/handler.py
b/pypy/module/faulthandler/handler.py
--- a/pypy/module/faulthandler/handler.py
+++ b/pypy/module/faulthandler/handler.py
@@ -128,6 +128,8 @@
self.check_signum(signum)
change = cintf.pypy_faulthandler_unregister(
rffi.cast(rffi.INT, signum))
+ if self.user_w_files is not None:
+ self.user_w_files.pop(signum, None)
return rffi.cast(lltype.Signed, change) == 1
def finish(self):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit