Skip to content

Commit 1f4fa32

Browse files
committed
Remove legacy Python 2.6 compatibility
1 parent d987dc0 commit 1f4fa32

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

djangosaml2/conf.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,10 @@
1414
# limitations under the License.
1515

1616
import copy
17+
from importlib import import_module
1718

1819
from django.conf import settings
1920
from django.core.exceptions import ImproperlyConfigured
20-
try:
21-
from importlib import import_module
22-
except ImportError:
23-
from django.utils.importlib import import_module
2421

2522
from saml2.config import SPConfig
2623

0 commit comments

Comments
 (0)