diff options
author | Andy Doan <andy.doan@linaro.org> | 2016-02-05 09:09:28 -0600 |
---|---|---|
committer | Andy Doan <andy.doan@linaro.org> | 2016-02-05 09:09:28 -0600 |
commit | e4f36e933c21a97c875836e65ce069a8bd4e65bb (patch) | |
tree | 2aa1db7422aaf4cd17cb5913fe36216f778d712a /import_emails.py | |
parent | 177d55ce927f92cec0ae1dabdaa501862b15345a (diff) |
django 1.8: fix import_by_path warning
import_by_path was deprecated and is now import_string.
Change-Id: I16d75dc709ae80dcdd66f1a5bd2b603b3fc4ce8d
Diffstat (limited to 'import_emails.py')
-rwxr-xr-x | import_emails.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/import_emails.py b/import_emails.py index f5d5402..7039e7f 100755 --- a/import_emails.py +++ b/import_emails.py @@ -8,7 +8,7 @@ import logging import imaplib from django.conf import settings -from django.utils.module_loading import import_by_path +from django.utils.module_loading import import_string from patchwork.bin import parsemail from patchwork.models import Patch, State @@ -75,7 +75,7 @@ def process_inbox(mail, max_messages=0): def get_monkey_patcher(): p = getattr(settings, 'PARSEMAIL_MONKEY_PATCHER', None) if p: - return import_by_path(p) + return import_string(p) if __name__ == '__main__': |