◐ Shell
clean mode source ↗

bpo-30266: support "= None" pattern in AbstractContextManager by JelleZijlstra · Pull Request #1448 · python/cpython

@JelleZijlstra

ilevkivskyi

berkerpeksag

Mariatta pushed a commit to Mariatta/cpython that referenced this pull request

Jun 10, 2017
…ythonGH-1448)

contextlib.AbstractContextManager now supports anti-registration
by setting __enter__ = None or __exit__ = None, following the pattern
introduced in bpo-25958..
(cherry picked from commit 57161aa)

Mariatta added a commit that referenced this pull request

Jun 10, 2017
… (GH-2054)

contextlib.AbstractContextManager now supports anti-registration
by setting __enter__ = None or __exit__ = None, following the pattern
introduced in bpo-25958..
(cherry picked from commit 57161aa)