diff --git a/socketio/packet.py b/socketio/packet.py index c047611..2ad8de4 100644 --- a/socketio/packet.py +++ b/socketio/packet.py @@ -1,6 +1,9 @@ import functools import json as _json -from urllib.parse import urlparse +try: + from urllib.parse import urlparse +except ImportError: + from urllib2.urlparse import urlparse import six