summaryrefslogtreecommitdiff
path: root/src/saml2/config.py
diff options
context:
space:
mode:
authorDan Sully <dsully@linkedin.com>2016-10-26 10:20:22 -0400
committerDan Sully <dsully@linkedin.com>2016-10-26 10:20:22 -0400
commit5c63aa6f88440ec708ceb39d179bf1d61a878426 (patch)
tree41c6bbcc327ed89744a3a62c28d6fb57351e2eab /src/saml2/config.py
parentccb842d20b9a4a2334706a180a69a39136f37f08 (diff)
downloadpysaml2-5c63aa6f88440ec708ceb39d179bf1d61a878426.tar.gz
Remove (undeclared dependency) usage of backports.test.support. This was
pulling in `unittest2` as a runtime dependency instead of a test dependency. It's also really not needed, as the functionality that it provides was not being called. Just use importlib instead. Remove unused functions in s_utils.py
Diffstat (limited to 'src/saml2/config.py')
-rw-r--r--src/saml2/config.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/saml2/config.py b/src/saml2/config.py
index c5e8f2c7..9fc3e708 100644
--- a/src/saml2/config.py
+++ b/src/saml2/config.py
@@ -1,13 +1,14 @@
#!/usr/bin/env python
+
import copy
-import sys
-import os
-import re
+import importlib
import logging
import logging.handlers
-import six
+import os
+import re
+import sys
-from future.backports.test.support import import_module
+import six
from saml2 import root_logger, BINDING_URI, SAMLError
from saml2 import BINDING_SOAP
@@ -359,7 +360,7 @@ class Config(object):
else:
sys.path.insert(0, head)
- return import_module(tail)
+ return importlib.import_module(tail)
def load_file(self, config_file, metadata_construction=False):
if config_file.endswith(".py"):