Issue #13896: Make shelf instances work with 'with' as context managers.

Original patch by Filip GruszczyƄski.
3 files changed