diff options
author | Justus Winter <[email protected]> | 2016-07-28 14:29:05 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-07-28 14:50:02 +0000 |
commit | 2ff58fcbd5c060dac3a7feec478819d2c5a164ec (patch) | |
tree | 361938f49ad34e0f3a65a444b79d4c2bdbd20669 /lang/python/pyme/errors.py | |
parent | python: Rename compiled SWIG module. (diff) | |
download | gpgme-2ff58fcbd5c060dac3a7feec478819d2c5a164ec.tar.gz gpgme-2ff58fcbd5c060dac3a7feec478819d2c5a164ec.zip |
python: Drop superfluous imports and trim public interface.
* lang/python/pyme/__init__.py: Avoid leaking low-level 'gpgme', make
sure the main module looks nice and tidy, appease pyflakes.
* lang/python/pyme/errors.py: Appease pyflakes.
* lang/python/pyme/util.py: Avoid leaking low-level 'gpgme' into the
module namespace.
* lang/python/pyme/version.py.in: Likewise.
* lang/python/tests/t-keylist.py: Drop superfluous imports.
* lang/python/tests/t-sig-notation.py: Likewise.
* lang/python/tests/t-sign.py: Likewise.
* lang/python/tests/t-signers.py: Likewise.
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'lang/python/pyme/errors.py')
-rw-r--r-- | lang/python/pyme/errors.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lang/python/pyme/errors.py b/lang/python/pyme/errors.py index 1e6e4ab6..9c582073 100644 --- a/lang/python/pyme/errors.py +++ b/lang/python/pyme/errors.py @@ -20,6 +20,9 @@ from . import util util.process_constants('GPG_ERR_', globals()) +# To appease static analysis tools, we define some constants here: +NO_ERROR = 0 + class PymeError(Exception): pass |