bpo-30266: support "= None" pattern in AbstractContextManager (#1448)
contextlib.AbstractContextManager now supports anti-registration by setting __enter__ = None or __exit__ = None, following the pattern introduced in bpo-25958.
J
Jelle Zijlstra committed
57161aac5eb9bcb0b43e551a1937ff0a84c1ec52
Parent: 3b5cf85
Committed by Guido van Rossum <guido@python.org>
on 6/9/2017, 3:21:47 PM