crawler fix (skip binary files)

This commit is contained in:
Miroslav Stampar
2011-06-20 22:41:38 +00:00
parent 20bb1a685b
commit 2a4a284a29
3 changed files with 8 additions and 6 deletions

View File

@@ -549,9 +549,6 @@ class Tag(PageElement):
val))
self.attrs = map(convert, self.attrs)
# Reference: http://bytes.com/topic/python/answers/552874-py-2-5-bug-sgmllib
SGMLParser.convert_codepoint = lambda self, codepoint: unichr(codepoint)
def getString(self):
if (len(self.contents) == 1
and isinstance(self.contents[0], NavigableString)):