python: import type

* Fixed bug T4242 and tested that dropping "Import" in favour of
  "import_type" does indeed work just fine.

Tested-by: Ben McGinnes <ben@adversary.org>
Signed-off-by: Ben McGinnes <ben@adversary.org>
This commit is contained in:
Ben McGinnes 2018-11-19 21:38:50 +11:00
parent f773ad392d
commit fd34415bdd

View File

@ -32,13 +32,6 @@ from . import status, validity
del absolute_import, print_function, unicode_literals, util
# This was a bad idea (though I get why it was done):
#
# # A complication arises because 'import' is a reserved keyword.
# # Import it as 'Import' instead.
# globals()['Import'] = getattr(
# __import__('', globals(), locals(), [str('import')], 1), "import")
__all__ = [
'data', 'event', 'import_type', 'keysign', 'keylist', 'md', 'pk',
'protocol', 'sig', 'sigsum', 'status', 'tofu', 'validity', 'create'