feat(script/check_md_links.py): make python2/3 compatible

This commit is contained in:
Soonho Kong 2016-02-23 14:33:16 -05:00
parent 494b88e103
commit 596fe17f16

View file

@ -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: