[tor-commits] [stem/master] FIX: ProtocolError is no longer in stem.socket

atagar at torproject.org atagar at torproject.org
Sat Dec 8 23:32:31 UTC 2012


commit bd386445e7c6bf93348fde50503765fb13341971
Author: Sean Robinson <seankrobinson at gmail.com>
Date:   Sat Dec 8 15:31:57 2012 -0800

    FIX: ProtocolError is no longer in stem.socket
    
    Signed-off-by: Sean Robinson <seankrobinson at gmail.com>
---
 stem/control.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/stem/control.py b/stem/control.py
index 30c440b..c24fe2c 100644
--- a/stem/control.py
+++ b/stem/control.py
@@ -657,7 +657,7 @@ class Controller(BaseController):
     :param functor listener: function to be called when an event is received
     :param stem.control.EventType events: event types to be listened for
     
-    :raises: :class:`stem.socket.ControllerError` if unable to set the events
+    :raises: :class:`stem.ProtocolError` if unable to set the events
     """
     
     # first checking that tor supports these event types
@@ -678,7 +678,7 @@ class Controller(BaseController):
     
     :param stem.control.EventListener listener: listener to be removed
     
-    :raises: :class:`stem.socket.ControllerError` if unable to set the events
+    :raises: :class:`stem.ProtocolError` if unable to set the events
     """
     
     with self._event_listeners_lock:
@@ -696,7 +696,7 @@ class Controller(BaseController):
         response = self.msg("SETEVENTS %s" % " ".join(self._event_listeners.keys()))
         
         if not response.is_ok():
-          raise stem.socket.ProtocolError("SETEVENTS received unexpected response\n%s" % response)
+          raise stem.ProtocolError("SETEVENTS received unexpected response\n%s" % response)
   
   def is_caching_enabled(self):
     """



More information about the tor-commits mailing list