Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-02-24 03:16:34 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-02-24 03:16:34 (GMT)
commit2e732ff2ef917d9f1f02fbb96ae6e1cc0302f2ac (patch)
tree79b6287c6002016009f87076abff6da186a2d240
parentaf41294bbcc29aae0f73101f9a34671c5b75f24f (diff)
Skip empty nodes in BeautifulSoup
-rw-r--r--Processing/BeautifulSoup.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Processing/BeautifulSoup.py b/Processing/BeautifulSoup.py
index 34204e7..b2a78e3 100644
--- a/Processing/BeautifulSoup.py
+++ b/Processing/BeautifulSoup.py
@@ -825,6 +825,8 @@ class Tag(PageElement):
stopNode = self._lastRecursiveChild().next
current = self.contents[0]
while current is not stopNode:
+ if not current:
+ break
yield current
current = current.next