[tor-commits] [stem/master] Move Pack table into Size docs
atagar at torproject.org
atagar at torproject.org
Sun Jan 21 02:04:04 UTC 2018
commit b65cf1c91597419d5c50ef50a428daf691552219
Author: Damian Johnson <atagar at torproject.org>
Date: Thu Jan 11 17:56:45 2018 -0800
Move Pack table into Size docs
We no longer have a Pack enum, so moving the table to the right spot.
---
stem/client/__init__.py | 26 +++++++++-----------------
1 file changed, 9 insertions(+), 17 deletions(-)
diff --git a/stem/client/__init__.py b/stem/client/__init__.py
index d0920778..c3b18c6c 100644
--- a/stem/client/__init__.py
+++ b/stem/client/__init__.py
@@ -9,23 +9,6 @@ a wrapper for :class:`~stem.socket.RelaySocket`, much the same way as
.. versionadded:: 1.7.0
-.. data:: Pack (enum)
-
- Unsigned `struct.pack format
- <https://docs.python.org/2/library/struct.html#format-characters>` for
- network-order fields.
-
- ==================== ===========
- Pack Description
- ==================== ===========
- CHAR Unsigned char (1 byte)
- SHORT Unsigned short (2 bytes)
- LONG Unsigned long (4 bytes)
- LONG_LONG Unsigned long long (8 bytes)
- ==================== ===========
-
-**Module Overview:**
-
::
Size - Packable and unpackable field size.
@@ -48,6 +31,15 @@ class Size(object):
Unsigned `struct.pack format
<https://docs.python.org/2/library/struct.html#format-characters>` for
network-order fields.
+
+ ==================== ===========
+ Pack Description
+ ==================== ===========
+ CHAR Unsigned char (1 byte)
+ SHORT Unsigned short (2 bytes)
+ LONG Unsigned long (4 bytes)
+ LONG_LONG Unsigned long long (8 bytes)
+ ==================== ===========
"""
def __init__(self, name, size, pack_format):
More information about the tor-commits
mailing list