mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-20 14:20:59 +00:00
break cycles
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1238 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
4e8c8547ec
commit
83b7ef7ff9
1 changed files with 8 additions and 0 deletions
|
|
@ -459,6 +459,8 @@ class UrlData (object):
|
|||
h.parser = p
|
||||
p.feed(self.getContent())
|
||||
p.flush()
|
||||
h.parser = None
|
||||
p.handler = None
|
||||
return h.follow
|
||||
|
||||
|
||||
|
|
@ -473,6 +475,8 @@ class UrlData (object):
|
|||
h.parser = p
|
||||
p.feed(self.getContent())
|
||||
p.flush()
|
||||
h.parser = None
|
||||
p.handler = None
|
||||
for cur_anchor,line,column,name,base in h.urls:
|
||||
if cur_anchor == self.anchor:
|
||||
return
|
||||
|
|
@ -570,6 +574,8 @@ class UrlData (object):
|
|||
h.parser = p
|
||||
p.feed(self.getContent())
|
||||
p.flush()
|
||||
h.parser = None
|
||||
p.handler = None
|
||||
baseRef = None
|
||||
if len(h.urls)>=1:
|
||||
baseRef = h.urls[0][0]
|
||||
|
|
@ -581,6 +587,8 @@ class UrlData (object):
|
|||
h.parser = p
|
||||
p.feed(self.getContent())
|
||||
p.flush()
|
||||
h.parser = None
|
||||
p.handler = None
|
||||
for s in h.parse_info:
|
||||
# the parser had warnings/errors
|
||||
self.setWarning(s)
|
||||
|
|
|
|||
Loading…
Reference in a new issue