aboutsummaryrefslogtreecommitdiffstats
path: root/src/vfs-create.c
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-06-07 17:31:10 +0000
committerJustus Winter <[email protected]>2016-06-08 11:44:09 +0000
commite3c5913a33edcbd7329b8d154c669f95ce782038 (patch)
treee8349c08388ca61dcfe2acb0b87c5fa5f675a061 /src/vfs-create.c
parentpython: Fix error handling. (diff)
downloadgpgme-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