Skip to content

Commit c3a76cf

Browse files
committed
Fixed import error in test for python3
1 parent 7057419 commit c3a76cf

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎stream/tests.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
import datetime
1111
from stream import serializer
1212
from requests.exceptions import ConnectionError, MissingSchema
13-
from urlparse import urlparse, parse_qs
13+
14+
try:
15+
from urlparse import urlparse, parse_qs
16+
except ImportError:
17+
from urllib.parse import urlparse, parse_qs
1418

1519
def connect_debug():
1620
return stream.connect(

0 commit comments

Comments
 (0)