Skip to content
This repository was archived by the owner on Jun 9, 2022. It is now read-only.

Commit 7648f53

Browse files
committed
Fixed urlparse import on Python 3.
1 parent fd01168 commit 7648f53

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

u2flib_host/appid.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626
# POSSIBILITY OF SUCH DAMAGE.
2727

2828
import requests
29-
from urlparse import urlparse
29+
try:
30+
from urlparse import urlparse
31+
except ImportError:
32+
from urllib.parse import urlparse
3033

3134
SUFFIX_URL = 'https://publicsuffix.org/list/effective_tld_names.dat'
3235

0 commit comments

Comments
 (0)