diff options
author | Justus Winter <[email protected]> | 2016-06-07 17:31:10 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-06-08 11:44:09 +0000 |
commit | e3c5913a33edcbd7329b8d154c669f95ce782038 (patch) | |
tree | e8349c08388ca61dcfe2acb0b87c5fa5f675a061 /src/vfs-create.c | |
parent | python: Fix error handling. (diff) | |
download | gpgme-e3c5913a33edcbd7329b8d154c669f95ce782038.tar.gz gpgme-e3c5913a33edcbd7329b8d154c669f95ce782038.zip |
python: Implement the context manager protocol.
* lang/python/pyme/core.py (Context.__del__): Make function
idemptotent.
(Context.{__enter__,__exit__}): Implement the context manager
protocol.
(Data.__del__): Make function idemptotent, drop debug print.
(Data.{__enter__,__exit__}): Implement the context manager
protocol.
* lang/python/tests/t-idiomatic.py: Demonstrate this.
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'src/vfs-create.c')
0 files changed, 0 insertions, 0 deletions