From 2ff58fcbd5c060dac3a7feec478819d2c5a164ec Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Thu, 28 Jul 2016 16:29:05 +0200 Subject: 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 --- lang/python/tests/t-keylist.py | 2 -- lang/python/tests/t-sig-notation.py | 2 +- lang/python/tests/t-sign.py | 1 - lang/python/tests/t-signers.py | 1 - 4 files changed, 1 insertion(+), 5 deletions(-) (limited to 'lang/python/tests') diff --git a/lang/python/tests/t-keylist.py b/lang/python/tests/t-keylist.py index 64fec272..fb59321d 100755 --- a/lang/python/tests/t-keylist.py +++ b/lang/python/tests/t-keylist.py @@ -17,8 +17,6 @@ # You should have received a copy of the GNU Lesser General Public # License along with this program; if not, see . -import sys -import pyme from pyme import core, constants import support diff --git a/lang/python/tests/t-sig-notation.py b/lang/python/tests/t-sig-notation.py index cb4a48e3..0f77e37a 100755 --- a/lang/python/tests/t-sig-notation.py +++ b/lang/python/tests/t-sig-notation.py @@ -18,7 +18,7 @@ # License along with this program; if not, see . import os -from pyme import core, constants, errors +from pyme import core, constants import support expected_notations = { diff --git a/lang/python/tests/t-sign.py b/lang/python/tests/t-sign.py index 802a32da..e066a29e 100755 --- a/lang/python/tests/t-sign.py +++ b/lang/python/tests/t-sign.py @@ -17,7 +17,6 @@ # You should have received a copy of the GNU Lesser General Public # License along with this program; if not, see . -import sys import os import pyme from pyme import core, constants diff --git a/lang/python/tests/t-signers.py b/lang/python/tests/t-signers.py index 15e80118..9d2cbdc6 100755 --- a/lang/python/tests/t-signers.py +++ b/lang/python/tests/t-signers.py @@ -17,7 +17,6 @@ # You should have received a copy of the GNU Lesser General Public # License along with this program; if not, see . -import sys import pyme from pyme import core, constants import support -- cgit v1.2.3