[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [stem/master] Stylistic edit: reorder attribute assignments



commit 4ccd6ce80e7a87ca162f4504b89a52bd9a538502
Author: Dave Rolek <dmr-x@xxxxxxxxxx>
Date:   Sun Jun 10 19:48:19 2018 +0000

    Stylistic edit: reorder attribute assignments
    
    This is mostly a personal thing - having these in the order that the
    RELAY cell payload is defined helps avoid incidental misreading.
---
 stem/client/cell.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/stem/client/cell.py b/stem/client/cell.py
index 1e382db8..57ccc1ab 100644
--- a/stem/client/cell.py
+++ b/stem/client/cell.py
@@ -343,10 +343,10 @@ class RelayCell(CircuitCell):
 
     super(RelayCell, self).__init__(circ_id, unused)
     self.command, self.command_int = RelayCommand.get(command)
-    self.data = str_tools._to_bytes(data)
     self.recognized = recognized
-    self.digest = digest
     self.stream_id = stream_id
+    self.digest = digest
+    self.data = str_tools._to_bytes(data)
 
     if digest == 0:
       if not stream_id and self.command in STREAM_ID_REQUIRED:



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits