mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-30 12:40:33 +00:00
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:
parent
1382aebcc7
commit
6300d08cfd
1 changed files with 2 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue