Skip to content

Commit

Permalink
Merge pull request #589 from knabar/maint-update-imports
Browse files Browse the repository at this point in the history
Remove Python 2 compatibility import
  • Loading branch information
knabar authored Nov 1, 2024
2 parents da5b7d1 + 33cf0eb commit d11fd1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions omeroweb/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#

import logging
import pkgutil
import importlib.util
from django.conf import settings
from django.apps import AppConfig
from django.conf.urls import include
Expand Down Expand Up @@ -93,7 +93,7 @@ def redirect_urlpatterns():
urlmodule = "%s.urls" % app

# Try to import module.urls.py if it exists (not for corsheaders etc)
urls_found = pkgutil.find_loader(urlmodule)
urls_found = importlib.util.find_spec(urlmodule)
if urls_found is not None:
try:
__import__(urlmodule)
Expand Down

0 comments on commit d11fd1e

Please sign in to comment.