forked from extern/django-helpdesk
Really fix py 2 imp/importlib
This commit is contained in:
parent
4b78704180
commit
aa63e8f299
@ -21,7 +21,9 @@ def get_staff_user(username='helpdesk.staff', password='password'):
|
|||||||
def reload_urlconf(urlconf=None):
|
def reload_urlconf(urlconf=None):
|
||||||
|
|
||||||
from django.utils import six
|
from django.utils import six
|
||||||
if six.PY3:
|
if six.PY2:
|
||||||
|
from imp import reload
|
||||||
|
else:
|
||||||
from importlib import reload
|
from importlib import reload
|
||||||
|
|
||||||
if urlconf is None:
|
if urlconf is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user