[stem/master] Minor revisions to the previous close_stream() revisions

commit 6176abb3f1c46192126a256aea6d6b27b4d66df9 Author: Sean Robinson <seankrobinson@gmail.com> Date: Sun Dec 9 18:38:47 2012 -0700 Minor revisions to the previous close_stream() revisions These tweaks change some pydoc verbiage and put NONE back in CircClosureReason while removing it from RelayEndReason. Signed-off-by: Sean Robinson <seankrobinson@gmail.com> --- stem/__init__.py | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/stem/__init__.py b/stem/__init__.py index 3e23d26..42b7b29 100644 --- a/stem/__init__.py +++ b/stem/__init__.py @@ -161,7 +161,7 @@ Library for working with the tor process. .. data:: RelayEndReason (enum) - Enumeration for possible reasons to close a stream. + Reasons why the stream is to be closed. =================== =========== RelayEndReason Description @@ -204,8 +204,8 @@ Library for working with the tor process. .. data:: StreamClosureReason (enum) Reason that a stream is being closed or failed to be established. This - includes all values in the :data:`~stem.RelayEndReason` enumeration. Tor may - provide reasons not in this enum. + includes all values in the :data:`~stem.RelayEndReason` enumeration as + well as the following. Tor may provide reasons not in this enum. ===================== =========== StreamClosureReason Description @@ -496,6 +496,7 @@ CircPurpose = stem.util.enum.UppercaseEnum( ) CircClosureReason = stem.util.enum.UppercaseEnum( + "NONE", "TORPROTOCOL", "INTERNAL", "REQUESTED", @@ -532,7 +533,6 @@ HiddenServiceState = stem.util.enum.UppercaseEnum( ) RelayEndReason = stem.util.enum.UppercaseEnum( - "NONE", "MISC", "RESOLVEFAILED", "CONNECTREFUSED",
participants (1)
-
atagar@torproject.org