Skip to content

Commit

Permalink
Revert unicode changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gunthercox committed Dec 4, 2017
1 parent 48c5b60 commit a845539
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions chatterbot/input/input_adapter.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# from __future__ import unicode_literals
from __future__ import unicode_literals
from chatterbot.adapters import Adapter


Expand All @@ -19,18 +18,16 @@ def process_input_statement(self, *args, **kwargs):
"""
Return an existing statement object (if one exists).
"""
import sys

input_statement = self.process_input(*args, **kwargs)

self.logger.info(u'Received input statement: {}'.format(input_statement.text))
self.logger.info('Received input statement: {}'.format(input_statement.text))

existing_statement = self.chatbot.storage.find(input_statement.text)

if existing_statement:
self.logger.info(u'"{}" is a known statement'.format(input_statement.text))
self.logger.info('"{}" is a known statement'.format(input_statement.text))
input_statement = existing_statement
else:
self.logger.info(u'"{}" is not a known statement'.format(input_statement.text))
self.logger.info('"{}" is not a known statement'.format(input_statement.text))

return input_statement

0 comments on commit a845539

Please sign in to comment.