use urllib2

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@836 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2003-04-17 13:06:14 +00:00
parent 1382aebcc7
commit 6300d08cfd

View file

@ -15,7 +15,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
import sys, re, urlparse, urllib, time, traceback, socket, select, i18n
import sys, re, urlparse, urllib2, time, traceback, socket, select, i18n
from urllib import splituser, splithost, splitport, unquote
#try:
# from linkcheck import DNS
@ -320,7 +320,7 @@ class UrlData:
def checkConnection (self):
self.urlConnection = urllib.urlopen(self.url)
self.urlConnection = urllib2.urlopen(self.url)
def allowsRecursion (self):