Skip to content

Commit

Permalink
[wiktionary] Fix a problem with conflicting function names
Browse files Browse the repository at this point in the history
  • Loading branch information
embolalia committed Feb 20, 2013
1 parent 3b360a3 commit f7a81be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wiktionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def text(html):
text = text.replace('(transitive', '(trans.')
return text

def wiktionary(word):
def wikt(word):
bytes = web.get(uri % web.quote(word.encode('utf-8')))
bytes = r_ul.sub('', bytes)

Expand Down Expand Up @@ -77,7 +77,7 @@ def wiktionary(willie, trigger):
willie.reply('You must tell me what to look up!')
return

etymology, definitions = wiktionary(word)
etymology, definitions = wikt(word)
if not definitions:
willie.say("Couldn't get any definitions for %s." % word)
return
Expand Down

0 comments on commit f7a81be

Please sign in to comment.