[tor-commits] [stem/master] Adding HS_DIR to the EventType enum
atagar at torproject.org
atagar at torproject.org
Sun Mar 16 23:02:39 UTC 2014
commit fbe7505822d16810dad8f3255b99053116962882
Author: Damian Johnson <atagar at torproject.org>
Date: Sun Mar 16 16:03:28 2014 -0700
Adding HS_DIR to the EventType enum
Oops, we documented HS_DIR but didn't actually include it in the enum. Spotted
by wfn. Also sorting the enum to make it match the docs.
---
stem/control.py | 37 +++++++++++++++++++------------------
1 file changed, 19 insertions(+), 18 deletions(-)
diff --git a/stem/control.py b/stem/control.py
index b0832ed..44f555a 100644
--- a/stem/control.py
+++ b/stem/control.py
@@ -185,31 +185,32 @@ from stem.util import log
State = stem.util.enum.Enum("INIT", "RESET", "CLOSED")
EventType = stem.util.enum.UppercaseEnum(
- "CIRC",
- "STREAM",
- "ORCONN",
+ "ADDRMAP",
+ "AUTHDIR_NEWDESCS",
+ "BUILDTIMEOUT_SET",
"BW",
+ "CIRC",
+ "CIRC_MINOR",
+ "CONF_CHANGED",
+ "CLIENTS_SEEN",
"DEBUG",
- "INFO",
- "NOTICE",
- "WARN",
+ "DESCCHANGED",
"ERR",
+ "GUARD",
+ "HS_DIR",
+ "INFO",
+ "NEWCONSENSUS",
"NEWDESC",
- "ADDRMAP",
- "AUTHDIR_NEWDESCS",
- "DESCCHANGED",
- "STATUS_GENERAL",
+ "NOTICE",
+ "NS",
+ "ORCONN",
+ "SIGNAL",
"STATUS_CLIENT",
+ "STATUS_GENERAL",
"STATUS_SERVER",
- "GUARD",
- "NS",
+ "STREAM",
"STREAM_BW",
- "CLIENTS_SEEN",
- "NEWCONSENSUS",
- "BUILDTIMEOUT_SET",
- "SIGNAL",
- "CONF_CHANGED",
- "CIRC_MINOR",
+ "WARN",
)
Listener = stem.util.enum.UppercaseEnum(
More information about the tor-commits
mailing list