From feff4e41c50c14b8865440b0bd6b2abe1e5237eb Mon Sep 17 00:00:00 2001 From: Jarrod Johnson <jbjohnso@us.ibm.com> Date: Thu, 6 Feb 2014 14:08:56 -0500 Subject: [PATCH] Fix mistakes in console interface base class --- confluent/interface/console.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/confluent/interface/console.py b/confluent/interface/console.py index 074a31de..32f57df2 100644 --- a/confluent/interface/console.py +++ b/confluent/interface/console.py @@ -6,20 +6,21 @@ class ConsoleEvent(object): reconnect or anything like that. Break is a serial break.""" Disconnect, Break = range(2) + class Console(object): """This is the class defining the interface a console plugin must return for the _console/session element""" def __init__(self, node, config): - raise NotImplementedException("Subclassing required") + raise NotImplementedError("Subclassing required") def connect(self, callback): - raise NotImplementedException("Subclassing required") + raise NotImplementedError("Subclassing required") def write(self, data): - raise NotImplementedException("Subclassing required") + raise NotImplementedError("Subclassing required") def wait_for_data(self, timeout=600): - raise NotImplementedException("Subclassing required") + raise NotImplementedError("Subclassing required") def ping(self): """This function is a hint to the console plugin that now would be a @@ -32,4 +33,3 @@ class Console(object): No return is expected, any error condition can be reported by sending ConsoleEvent.Disconnect, just like normal.""" pass -