From d7dc2d39857ccc1fce62f11c355cd1c5696bc08c Mon Sep 17 00:00:00 2001 From: Brian Rosner Date: Sat, 2 Aug 2008 00:33:21 +0000 Subject: [PATCH] Fixed #8086 -- Removed 2.5 specific keyword argument to __import__. Thanks CHasenpflug for noticing this. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8188 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/admin/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/admin/__init__.py b/django/contrib/admin/__init__.py index 112e9f9fdd..704dc58ee4 100644 --- a/django/contrib/admin/__init__.py +++ b/django/contrib/admin/__init__.py @@ -12,7 +12,7 @@ def autodiscover(): from django.conf import settings for app in settings.INSTALLED_APPS: try: - imp.find_module("admin", __import__(app, fromlist=[app.split(".")[-1]]).__path__) + imp.find_module("admin", __import__(app, {}, {}, [app.split(".")[-1]]).__path__) except ImportError: # there is no app admin.py, skip it continue