"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lang/python/src/core.py" between
gpgme-1.15.0.tar.bz2 and gpgme-1.15.1.tar.bz2

About: GPGME (GnuPG Made Easy) is a library that provides a High-Level Crypto API for encryption, decryption, signing, signature verification and key management.

core.py  (gpgme-1.15.0.tar.bz2):core.py  (gpgme-1.15.1.tar.bz2)
skipping to change at line 638 skipping to change at line 638
Raises: Raises:
GPGMEError -- as signaled by the underlying library. GPGMEError -- as signaled by the underlying library.
""" """
data = Data() data = Data()
mode = 0 mode = 0
try: try:
self.op_export(pattern, mode, data) self.op_export(pattern, mode, data)
data.seek(0, os.SEEK_SET) data.seek(0, os.SEEK_SET)
pk_result = data.read() pk_result = data.read()
except GPGMEError as e: except GPGMEError as e:
pk_result = e raise e
if len(pk_result) > 0: if len(pk_result) > 0:
result = pk_result result = pk_result
else: else:
result = None result = None
return result return result
def key_export_minimal(self, pattern=None): def key_export_minimal(self, pattern=None):
"""Export keys. """Export keys.
skipping to change at line 673 skipping to change at line 673
Raises: Raises:
GPGMEError -- as signaled by the underlying library. GPGMEError -- as signaled by the underlying library.
""" """
data = Data() data = Data()
mode = gpgme.GPGME_EXPORT_MODE_MINIMAL mode = gpgme.GPGME_EXPORT_MODE_MINIMAL
try: try:
self.op_export(pattern, mode, data) self.op_export(pattern, mode, data)
data.seek(0, os.SEEK_SET) data.seek(0, os.SEEK_SET)
pk_result = data.read() pk_result = data.read()
except GPGMEError as e: except GPGMEError as e:
pk_result = e raise e
if len(pk_result) > 0: if len(pk_result) > 0:
result = pk_result result = pk_result
else: else:
result = None result = None
return result return result
def key_export_secret(self, pattern=None): def key_export_secret(self, pattern=None):
"""Export secret keys. """Export secret keys.
skipping to change at line 714 skipping to change at line 714
Raises: Raises:
GPGMEError -- as signaled by the underlying library. GPGMEError -- as signaled by the underlying library.
""" """
data = Data() data = Data()
mode = gpgme.GPGME_EXPORT_MODE_SECRET mode = gpgme.GPGME_EXPORT_MODE_SECRET
try: try:
self.op_export(pattern, mode, data) self.op_export(pattern, mode, data)
data.seek(0, os.SEEK_SET) data.seek(0, os.SEEK_SET)
sk_result = data.read() sk_result = data.read()
except GPGMEError as e: except GPGMEError as e:
sk_result = e raise e
if len(sk_result) > 0: if len(sk_result) > 0:
result = sk_result result = sk_result
else: else:
result = None result = None
return result return result
def keylist(self, def keylist(self,
pattern=None, pattern=None,
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)