Skip to content

Commit

Permalink
Merge pull request #3 from firemyst/patch-1
Browse files Browse the repository at this point in the history
quick fixes result duplicates in urls, users, lists, replies and tags.
  • Loading branch information
BonsaiDen committed Feb 16, 2012
2 parents a6eb544 + 98b78e6 commit 3474e0a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ttp.py
Expand Up @@ -97,11 +97,11 @@ class ParseResult(object):
''' '''


def __init__(self, urls, users, reply, lists, tags, html): def __init__(self, urls, users, reply, lists, tags, html):
self.urls = urls self.urls = list(set(urls)) if urls else [] #fixes dups
self.users = users self.users = list(set(users)) if users else []
self.lists = lists self.lists = list(set(lists)) if lists else []
self.reply = reply self.reply = list(set(reply)) if reply else []
self.tags = tags self.tags = list(set(tags)) if tags else []
self.html = html self.html = html




Expand Down

0 comments on commit 3474e0a

Please sign in to comment.