From 6300d08cfdf8582ddd2eb486c6edbe0f889657f5 Mon Sep 17 00:00:00 2001 From: calvin Date: Thu, 17 Apr 2003 13:06:14 +0000 Subject: [PATCH] use urllib2 git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@836 e7d03fd6-7b0d-0410-9947-9c21f3af8025 --- linkcheck/UrlData.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linkcheck/UrlData.py b/linkcheck/UrlData.py index 5da6d438..cd1bf6bb 100644 --- a/linkcheck/UrlData.py +++ b/linkcheck/UrlData.py @@ -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):