[tor-commits] [bridgedb/master] Revert "We should be consistant and use lowercase"

isis at torproject.org isis at torproject.org
Fri Feb 21 21:56:57 UTC 2014


commit d2a2d0c8b73399dbc7ecc0cde2bdd8f93006138c
Author: Isis Lovecruft <isis at torproject.org>
Date:   Sun Feb 9 22:15:46 2014 +0000

    Revert "We should be consistant and use lowercase"
    
    This reverts commit b502658ff210630328e56c142368f4b44357a205.
    
    Signed-off-by: Isis Lovecruft <isis at torproject.org>
---
 lib/bridgedb/Bridges.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/bridgedb/Bridges.py b/lib/bridgedb/Bridges.py
index f44be55..4aaf86f 100644
--- a/lib/bridgedb/Bridges.py
+++ b/lib/bridgedb/Bridges.py
@@ -470,7 +470,7 @@ def parseDescFile(f, bridge_purpose='bridge'):
                 ip = items[2].strip('[]')
                 orport = int(items[3])
         elif line.startswith("fingerprint "):
-            fingerprint = line[12:].replace(" ", "").lower()
+            fingerprint = line[12:].replace(" ", "")
         elif line.startswith("router-signature"):
             purposeMatches = (purpose == bridge_purpose or bridge_purpose is None)
             if purposeMatches and nickname and ip and orport and fingerprint:
@@ -636,7 +636,7 @@ def parseStatusFile(networkstatusFile):
         if line.startswith("r "):
             (nickname, ID, descDigest, timestamp,
              ORaddr, ORport, dirport) = networkstatus.parseRLine(line)
-            hexID = toHex(ID).lower()
+            hexID = toHex(ID)
             logging.debug("Parsed networkstatus line:")
             logging.debug("  Nickname:   %s" % nickname)
             logging.debug("  Identity:   %s" % hexID)





More information about the tor-commits mailing list