Skip to content

Commit

Permalink
Remove empty init in input adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
gunthercox committed Mar 15, 2017
1 parent 6ae5078 commit 949f478
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions chatterbot/input/variable_input_type_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ class VariableInputTypeAdapter(InputAdapter):
OBJECT = 'object'
VALID_FORMATS = (JSON, TEXT, OBJECT, )

def __init__(self, **kwargs):
super(VariableInputTypeAdapter, self).__init__(**kwargs)

def detect_type(self, statement):
import sys

Expand Down Expand Up @@ -51,7 +48,7 @@ def process_input(self, statement):
if input_type == self.JSON:
input_json = dict(statement)
text = input_json['text']
del(input_json['text'])
del input_json['text']

return Statement(text, **input_json)

Expand Down

0 comments on commit 949f478

Please sign in to comment.