Merge lp:~twom/django-saml2-idp/fix-deprecations into lp:~ubuntuone-pqm-team/django-saml2-idp/stable

Proposed by Tom Wardill
Status: Merged
Approved by: Tom Wardill
Approved revision: 71
Merged at revision: 71
Proposed branch: lp:~twom/django-saml2-idp/fix-deprecations
Merge into: lp:~ubuntuone-pqm-team/django-saml2-idp/stable
Diff against target: 14 lines (+1/-1)
1 file modified
idptest/saml2idp/registry.py (+1/-1)
To merge this branch: bzr merge lp:~twom/django-saml2-idp/fix-deprecations
Reviewer Review Type Date Requested Status
Colin Watson (community) Approve
John Samuel Anderson Pending
Review via email: mp+337046@code.launchpad.net

This proposal supersedes a proposal from 2018-02-02.

Commit message

Use python's importlib, rather than django

Description of the change

Use python's importlib, rather than django. Fixes deprecation warnings in Django 1.8

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'idptest/saml2idp/registry.py'
2--- idptest/saml2idp/registry.py 2012-06-27 20:26:38 +0000
3+++ idptest/saml2idp/registry.py 2018-02-02 11:10:27 +0000
4@@ -2,9 +2,9 @@
5 Registers and loads Processor classes from settings.
6 """
7 # Python imports
8+from importlib import import_module
9 import logging
10 # Django imports
11-from django.utils.importlib import import_module
12 from django.core.exceptions import ImproperlyConfigured
13 # Local imports
14 import exceptions

Subscribers

People subscribed via source and target branches