Really fix py 2 imp/importlib

This commit is contained in:
Garret Wassermann 2017-12-28 09:26:14 -05:00
parent 4b78704180
commit aa63e8f299

View File

@ -21,7 +21,9 @@ def get_staff_user(username='helpdesk.staff', password='password'):
def reload_urlconf(urlconf=None):
from django.utils import six
if six.PY3:
if six.PY2:
from imp import reload
else:
from importlib import reload
if urlconf is None: