[style] pep8
authorKali Kaneko <kali@leap.se>
Wed, 29 Jul 2015 20:27:54 +0000 (16:27 -0400)
committerKali Kaneko <kali@leap.se>
Wed, 29 Jul 2015 20:27:54 +0000 (16:27 -0400)
src/leap/keymanager/__init__.py
src/leap/keymanager/tests/test_keymanager.py
src/leap/keymanager/tests/test_validation.py

index 56633c5..282ff48 100644 (file)
@@ -71,10 +71,12 @@ from leap.keymanager.keys import (
     KEYMANAGER_KEY_TAG,
     TAGS_PRIVATE_INDEX,
 )
-from leap.keymanager.openpgp import (
-    OpenPGPKey,
-    OpenPGPScheme,
-)
+from leap.keymanager.openpgp import OpenPGPKey, OpenPGPScheme
+
+from ._version import get_versions
+
+__version__ = get_versions()['version']
+del get_versions
 
 logger = logging.getLogger(__name__)
 
@@ -828,8 +830,3 @@ def _get_domain(url):
     :rtype: str
     """
     return urlparse(url).hostname
-
-
-from ._version import get_versions
-__version__ = get_versions()['version']
-del get_versions
index 08d3750..a12cac0 100644 (file)
@@ -388,9 +388,8 @@ class KeyManagerCryptoTestCase(KeyManagerWithSoledadTestCase):
                                  sign=ADDRESS, fetch_remote=False))
         return self.assertFailure(d, KeyNotFound)
 
-
-import unittest
 if __name__ == "__main__":
+    import unittest
     unittest.main()
 
 # key 0F91B402: someone@somedomain.org
index 0c1d155..561ca50 100644 (file)
@@ -339,7 +339,6 @@ X2+l7IOSt+31KQCBFN/VmhTySJOVQC1d2A56lSH2c/DWVClji+x3suzn
 -----END PGP PUBLIC KEY BLOCK-----
 """
 
-
-import unittest
 if __name__ == "__main__":
+    import unittest
     unittest.main()