Skip to content

Commit

Permalink
DDG: remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
James Lu committed Dec 11, 2014
1 parent f16f666 commit 3c6126f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions DDG/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"#installing-beautiful-soup")

class DDG(callbacks.Plugin):
"""Searches results on DuckDuckGo."""
"""Searches for results on DuckDuckGo."""
threaded = True

def search(self, irc, msg, args, text):
Expand All @@ -74,7 +74,6 @@ def search(self, irc, msg, args, text):
# DuckDuckGo lite uses tables for everything. Each WEB result is made
# up of 3 <tr> tags:
tables = soup.find_all('table')
regex = re.compile('.*!(sponsored).*')

webresults = tables[1].find_all('tr')
if not webresults:
Expand Down

0 comments on commit 3c6126f

Please sign in to comment.