[tor-commits] [fallback-scripts/master] script: sort system imports in alphabetical order

teor at torproject.org teor at torproject.org
Thu Aug 1 06:41:01 UTC 2019


commit 807d57a0b3ff39966097b212687086b70c91ab18
Author: teor <teor at torproject.org>
Date:   Thu Jun 27 13:22:31 2019 +1000

    script: sort system imports in alphabetical order
    
    And remove a duplicate "import re".
    
    Part of 29100.
---
 updateFallbackDirs.py | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/updateFallbackDirs.py b/updateFallbackDirs.py
index 049eeb9..d492da5 100755
--- a/updateFallbackDirs.py
+++ b/updateFallbackDirs.py
@@ -33,21 +33,20 @@
 # https://trac.torproject.org/projects/tor/attachment/ticket/8374/dir_list.2.py
 # Modifications by teor, 2015
 
-import StringIO
-import string
-import re
+import copy
 import datetime
+import dateutil.parser
 import gzip
-import os.path
+import hashlib
 import json
 import math
+import os.path
+import re
+import string
+import StringIO
 import sys
 import urllib
 import urllib2
-import hashlib
-import dateutil.parser
-import copy
-import re
 
 from stem.descriptor import DocumentHandler
 from stem.descriptor.remote import get_consensus, get_server_descriptors, MAX_FINGERPRINTS





More information about the tor-commits mailing list