[tor-commits] [bridgedb/develop] We should be consistant and use lowercase

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


commit b502658ff210630328e56c142368f4b44357a205
Author: Matthew Finkel <Matthew.Finkel at gmail.com>
Date:   Sun Feb 2 05:26:16 2014 +0000

    We should be consistant and use lowercase
---
 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 a6ca14f..e8201b5 100644
--- a/lib/bridgedb/Bridges.py
+++ b/lib/bridgedb/Bridges.py
@@ -469,7 +469,7 @@ def parseDescFile(f, bridge_purpose='bridge'):
                 ip = items[2].strip('[]')
                 orport = int(items[3])
         elif line.startswith("fingerprint "):
-            fingerprint = line[12:].replace(" ", "")
+            fingerprint = line[12:].replace(" ", "").lower()
         elif line.startswith("router-signature"):
             purposeMatches = (purpose == bridge_purpose or bridge_purpose is None)
             if purposeMatches and nickname and ip and orport and fingerprint:
@@ -635,7 +635,7 @@ def parseStatusFile(networkstatusFile):
         if line.startswith("r "):
             (nickname, ID, descDigest, timestamp,
              ORaddr, ORport, dirport) = networkstatus.parseRLine(line)
-            hexID = toHex(ID)
+            hexID = toHex(ID).lower()
             logging.debug("Parsed networkstatus line:")
             logging.debug("  Nickname:   %s" % nickname)
             logging.debug("  Identity:   %s" % hexID)





More information about the tor-commits mailing list