diff --git a/pyicloud/base.py b/pyicloud/base.py index 6e5676e..f58d6cb 100644 --- a/pyicloud/base.py +++ b/pyicloud/base.py @@ -1,5 +1,5 @@ +import six import copy -import cookielib import uuid import hashlib import json @@ -20,6 +20,11 @@ from pyicloud.services import ( RemindersService ) +if six.PY3: + import http.cookiejar as cookielib +else: + import cookielib + logger = logging.getLogger(__name__)