diff --git a/dbmail/providers/nexmo/sms.py b/dbmail/providers/nexmo/sms.py index 3ee1230..a0fc5fb 100644 --- a/dbmail/providers/nexmo/sms.py +++ b/dbmail/providers/nexmo/sms.py @@ -1,6 +1,10 @@ # -*- coding: utf-8 -*- -from urllib import urlopen, urlencode +try: + from urllib import urlopen, urlencode +except ImportError: + from urllib.request import urlopen + from urllib.parse import urlencode from json import loads from django.conf import settings