Skip to content

Commit 6ff7499

Browse files
committed
🐛 fix python 2 compactibility. urlparse #303
1 parent b26ceef commit 6ff7499

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

moban/file_system.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import sys
22
import logging
33
from contextlib import contextmanager
4-
from urllib.parse import urlparse
4+
try:
5+
from urllib.parse import urlparse
6+
except ImportError:
7+
from urlparse import urlparse
58

69
import fs
710
import fs.path

0 commit comments

Comments
 (0)