From fd34415bdd57332424bd5a98d279e2331678a2fb Mon Sep 17 00:00:00 2001 From: Ben McGinnes Date: Mon, 19 Nov 2018 21:38:50 +1100 Subject: [PATCH] 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 Signed-off-by: Ben McGinnes --- lang/python/src/constants/__init__.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lang/python/src/constants/__init__.py b/lang/python/src/constants/__init__.py index 4e5ced24..f8a73080 100644 --- a/lang/python/src/constants/__init__.py +++ b/lang/python/src/constants/__init__.py @@ -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'