[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/master] We should be consistant and use lowercase
commit b502658ff210630328e56c142368f4b44357a205
Author: Matthew Finkel <Matthew.Finkel@xxxxxxxxx>
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)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits