Skip to content

Commit

Permalink
Appease flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
eyemyth committed Jan 23, 2018
1 parent e8fbe05 commit 9645324
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion textplusstuff/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from __future__ import unicode_literals
import sys

from six.moves import reload_module

from textplusstuff.registry import stuff_registry

from django.utils.module_loading import autodiscover_modules
Expand All @@ -22,5 +24,5 @@ def autodiscover(urlconf=None):
if urlconf is None:
urlconf = settings.ROOT_URLCONF
if urlconf in sys.modules:
reload(sys.modules[urlconf])
reload_module(sys.modules[urlconf])
clear_url_caches()

0 comments on commit 9645324

Please sign in to comment.