feat(script/check_md_links.py): make python2/3 compatible
This commit is contained in:
parent
494b88e103
commit
596fe17f16
1 changed files with 6 additions and 2 deletions
|
@ -4,8 +4,12 @@ import argparse
|
|||
import collections
|
||||
import os
|
||||
import sys
|
||||
import urllib.error
|
||||
import urllib.request
|
||||
try:
|
||||
from urllib.request import urlopen
|
||||
from urllib.parse import urlparse
|
||||
except ImportError:
|
||||
from urlparse import urlparse
|
||||
from urllib import urlopen
|
||||
try:
|
||||
import mistune
|
||||
except ImportError:
|
||||
|
|
Loading…
Reference in a new issue