diff options
author | Adam Tauber <asciimoo@gmail.com> | 2014-10-19 12:41:04 +0200 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2014-10-19 12:41:04 +0200 |
commit | 5740cfbf1cb468af74d0e7e1c9358ce702eb4f59 (patch) | |
tree | c93752a16cd24ce1b72e0f0520ed04d0e0f25c9e /searx/utils.py | |
parent | b0fd71b7b3463864e6c60156610d383af2ac9709 (diff) | |
download | searxng-5740cfbf1cb468af74d0e7e1c9358ce702eb4f59.tar.gz searxng-5740cfbf1cb468af74d0e7e1c9358ce702eb4f59.zip |
[fix] pep8 part II.
Diffstat (limited to 'searx/utils.py')
-rw-r--r-- | searx/utils.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/searx/utils.py b/searx/utils.py index 28e42b272..7764291fc 100644 --- a/searx/utils.py +++ b/searx/utils.py @@ -1,4 +1,4 @@ -#import htmlentitydefs +# import htmlentitydefs from codecs import getincrementalencoder from HTMLParser import HTMLParser from random import choice @@ -22,7 +22,8 @@ def gen_useragent(): def searx_useragent(): return 'searx' - + + def highlight_content(content, query): if not content: @@ -67,8 +68,8 @@ class HTMLTextExtractor(HTMLParser): self.result.append(unichr(codepoint)) def handle_entityref(self, name): - #codepoint = htmlentitydefs.name2codepoint[name] - #self.result.append(unichr(codepoint)) + # codepoint = htmlentitydefs.name2codepoint[name] + # self.result.append(unichr(codepoint)) self.result.append(name) def get_text(self): |