[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [stem/master] Handling typo in STATUS_SERVER event name
commit aeebbe762579951b4a78ddc8c68347d2d181fc49
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date: Sun Dec 2 02:05:09 2012 -0800
Handling typo in STATUS_SERVER event name
Prior to tor 0.2.0.22 STATUS_SERVER events claimed to be 'STATUS_SEVER'.
Accepting both names as per the spec's suggestion.
---
stem/response/events.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/stem/response/events.py b/stem/response/events.py
index bf9db4c..d580829 100644
--- a/stem/response/events.py
+++ b/stem/response/events.py
@@ -539,5 +539,8 @@ EVENT_TYPE_TO_CLASS = {
"STATUS_SERVER": StatusEvent,
"STREAM": StreamEvent,
"WARN": LogEvent,
+
+ # accounting for a bug in tor 0.2.0.22
+ "STATUS_SEVER": StatusEvent,
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits