Skip to content

Commit 28f41bf

Browse files
committed
Restore python3 support
1 parent 1d2fe69 commit 28f41bf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pusher/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
from urllib import quote
1515
import re
1616
import socket
17-
import urlparse
17+
try:
18+
import urlparse
19+
except ImportError:
20+
import urllib.parse as urlparse
1821

1922
if sys.version < '3':
2023
text_type = unicode

0 commit comments

Comments
 (0)