[tor-commits] [stem/master] Adjust import ordering

atagar at torproject.org atagar at torproject.org
Sat Jun 23 23:59:48 UTC 2018


commit 4c9e78ae50016af9668cf5b2f33045aa359ba69a
Author: Damian Johnson <atagar at torproject.org>
Date:   Sat Jun 23 16:37:07 2018 -0700

    Adjust import ordering
    
    Minor thing, but throughout our codebase we usually import in alphabetical
    order with the following groupings...
    
      * builtins
      * stem imports
      * 'from' imports
      * try/catch imports
    
    Guess this is from PEP8? It's been so long I don't remember any more. :P
---
 stem/descriptor/remote.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stem/descriptor/remote.py b/stem/descriptor/remote.py
index 94220a9c..e7baee65 100644
--- a/stem/descriptor/remote.py
+++ b/stem/descriptor/remote.py
@@ -100,12 +100,12 @@ import zlib
 
 import stem
 import stem.client
-from stem.client.datatype import RelayCommand
 import stem.descriptor
 import stem.directory
 import stem.prereq
 import stem.util.enum
 
+from stem.client.datatype import RelayCommand
 from stem.util import log, str_tools
 
 try:





More information about the tor-commits mailing list