From d823f3d0c9b6df3ccf829badf7e48748f1b509f8 Mon Sep 17 00:00:00 2001 From: Harri Berglund Date: Fri, 27 Dec 2013 20:47:51 +0200 Subject: [PATCH] [currency] Fix typo(s) --- currency.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/currency.py b/currency.py index 879a0c15dc..fed6423740 100644 --- a/currency.py +++ b/currency.py @@ -16,7 +16,7 @@ # Bank of England, or the European Central Bank. Who knew? base_url = 'http://www.bankofcanada.ca/stats/assets/rates_rss/noon/en_{}.xml' regex = re.compile(r''' - (\d+(?:\.\d+)?) # Decimal number + (\d+(?:\.\d+)?) # Decimal number \s*([a-zA-Z]{3}) # 3-letter currency code \s+(?:in|as|of|to)\s+ # preposition ([a-zA-Z]{3}) # 3-letter currency code @@ -41,13 +41,13 @@ def get_rate(code): return float(rate), name -@commands('cur', 'currrency', 'exchange') +@commands('cur', 'currency', 'exchange') @example('.cur 20 EUR in USD') def exchange(bot, trigger): """Show the exchange rate between two currencies""" match = regex.match(trigger.group(2)) if not match: - #It's appologetic, because it's using Canadian data. + # It's apologetic, because it's using Canadian data. bot.reply("Sorry, I didn't understand the input.") return NOLIMIT