[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Fix the missing unpack function in mmdb-convert.py
commit b0c41e3ec2bca832466ea7709827518159af0c08
Author: Jay Bitron <jaybitron@xxxxxxxxx>
Date: Wed Oct 10 14:12:53 2018 -0700
Fix the missing unpack function in mmdb-convert.py
---
src/config/mmdb-convert.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/config/mmdb-convert.py b/src/config/mmdb-convert.py
index 3a454a3fc..706a8b03c 100644
--- a/src/config/mmdb-convert.py
+++ b/src/config/mmdb-convert.py
@@ -77,7 +77,7 @@ def to_int32(s):
def to_int28(s):
"Parse a pair of big-endian 28-bit integers from bytestring s."
- a, b = unpack("!LL", s + b'\x00')
+ a, b = struct.unpack("!LL", s + b'\x00')
return (((a & 0xf0) << 20) + (a >> 8)), ((a & 0x0f) << 24) + (b >> 8)
class Tree(object):
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits