summaryrefslogtreecommitdiff
path: root/keystoneclient/__init__.py
diff options
context:
space:
mode:
authorDavid Stanek <dstanek@dstanek.com>2015-11-25 00:23:17 +0000
committerDavid Stanek <dstanek@dstanek.com>2015-11-25 00:23:17 +0000
commitf4e6f12a714080a1e0391d4891d3bcf0eecfbaaf (patch)
tree87bf93e009c1c76ca70c100d248537f6259818c8 /keystoneclient/__init__.py
parente5be447f3d206af594aa8520c1e651bcb2b46844 (diff)
downloadpython-keystoneclient-f4e6f12a714080a1e0391d4891d3bcf0eecfbaaf.tar.gz
Removes py26 support
We are removing Python 2.6 support from the Keystone libraries. Change-Id: I1c7a79edd41a73946c9d77bfb8cd2075e2500760 Closes-Bug: 1519449
Diffstat (limited to 'keystoneclient/__init__.py')
-rw-r--r--keystoneclient/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/keystoneclient/__init__.py b/keystoneclient/__init__.py
index ee848db..e8ef58e 100644
--- a/keystoneclient/__init__.py
+++ b/keystoneclient/__init__.py
@@ -27,6 +27,7 @@ Identity V2 and V3 clients can also be created directly. See
"""
+import importlib
import sys
import pbr.version
@@ -67,10 +68,9 @@ class _LazyImporter(object):
'v2_0',
'v3',
]
- # __import__ rather than importlib for Python 2.6.
if name in lazy_submodules:
- __import__('keystoneclient.%s' % name)
- return getattr(self, name)
+ return importlib.import_module('keystoneclient.%s' % name)
+
# Return module attributes like __all__ etc.
return getattr(self._module, name)