summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsand <daniel@spatof.org>2013-05-14 13:35:38 (GMT)
committer sand <daniel@spatof.org>2013-05-14 13:35:38 (GMT)
commit5275591b1a3b560e32a2ea0381f4b3c40d1407a1 (patch)
tree0ae7dc144fae09e0d3cf8cfedcc38e6c388faebf
parentc51927cc7f9a98f4fceb2cdb56e44b68e90fc91d (diff)
Niente da fare per megahal
-rw-r--r--pinolo/plugins/megahal.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/pinolo/plugins/megahal.py b/pinolo/plugins/megahal.py
index ea2da35..1cb60b1 100644
--- a/pinolo/plugins/megahal.py
+++ b/pinolo/plugins/megahal.py
@@ -181,7 +181,7 @@ class Brain(object):
return self.db['order']
@staticmethod
- def old_get_words_from_phrase(phrase):
+ def get_words_from_phrase(phrase):
phrase = phrase.upper()
words = []
if phrase:
@@ -228,13 +228,6 @@ class Brain(object):
words[-1] = '.'
return words
- @staticmethod
- def get_words_from_phrase(phrase):
- words = [word.upper() for word in phrase.split() if word]
- if not words[-1].endswith("."):
- words.append(".")
- return words
-
def communicate(self, phrase, learn=True, reply=True):
words = self.get_words_from_phrase(phrase)
if learn: