diff options
author | Ben McGinnes <[email protected]> | 2018-11-19 10:38:50 +0000 |
---|---|---|
committer | Ben McGinnes <[email protected]> | 2018-11-19 10:38:50 +0000 |
commit | fd34415bdd57332424bd5a98d279e2331678a2fb (patch) | |
tree | e777c4b06bd954a703469f1555ac556ab3a39818 | |
parent | python: import constant (diff) | |
download | gpgme-fd34415bdd57332424bd5a98d279e2331678a2fb.tar.gz gpgme-fd34415bdd57332424bd5a98d279e2331678a2fb.zip |
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 <[email protected]>
Signed-off-by: Ben McGinnes <[email protected]>
-rw-r--r-- | lang/python/src/constants/__init__.py | 7 |
1 files changed, 0 insertions, 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' |