err-elizabot

a classic electronic shrink for the chatbot err
git clone https://git.ce9e.org/err-elizabot.git

commit
34ae961688815e3300f126f4af0d0dc6aacebe47
parent
7b3187b0c8b8ae6dd1cd08b92d46d1fbf5c24638
Author
Tobias Bengfort <tobias.bengfort@gmx.net>
Date
2016-05-24 06:40
fix py3 issue

Diffstat

M eliza.py 5 ++++-

1 files changed, 4 insertions, 1 deletions


diff --git a/eliza.py b/eliza.py

@@ -276,7 +276,10 @@ def main():
  276   276     s = ''
  277   277     while s != 'quit':
  278   278         try:
  279    -1             s = raw_input('>')
   -1   279             try:
   -1   280                 s = raw_input('>')
   -1   281             except NameError:
   -1   282                 s = input('>')
  280   283         except EOFError:
  281   284             s = 'quit'
  282   285             print(s)