[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [stem/master] Rename fixed_length to fixed_size
commit b0cf9dbaacab439cf10e3977c0bf9e63c268e6a5
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date: Wed Jan 3 23:29:25 2018 -0800
Rename fixed_length to fixed_size
It's shorter. :P
---
stem/client.py | 8 ++++----
test/unit/client.py | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/stem/client.py b/stem/client.py
index 73c91ef5..136fc240 100644
--- a/stem/client.py
+++ b/stem/client.py
@@ -44,16 +44,16 @@ PackType = enum.Enum(
)
-class CellAttributes(collections.namedtuple('CellAttributes', ['name', 'value', 'fixed_length', 'for_circuit'])):
+class CellAttributes(collections.namedtuple('CellAttributes', ['name', 'value', 'fixed_size', 'for_circuit'])):
"""
Metadata for cells tor will accept on its ORPort.
:var str name: name of the cell type
:var int value: integer value of the command on the wire
- :var bool fixed_length: **True** if cells have a fixed length,
+ :var bool fixed_size: **True** if cells have a fixed length,
**False** if variable
- :var bool for_circuit: **True** if command is for a circuit, **False**
- otherwise
+ :var bool for_circuit: **True** if command is for a circuit,
+ **False** otherwise
"""
diff --git a/test/unit/client.py b/test/unit/client.py
index 4761cf8e..204c55fd 100644
--- a/test/unit/client.py
+++ b/test/unit/client.py
@@ -13,7 +13,7 @@ class TestClient(unittest.TestCase):
self.assertEqual('NETINFO', attr.name)
self.assertEqual(8, attr.value)
- self.assertEqual(True, attr.fixed_length)
+ self.assertEqual(True, attr.fixed_size)
self.assertEqual(False, attr.for_circuit)
self.assertEqual(10, stem.client.cell_attributes('CREATE2').value)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits