aboutsummaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorJay Bitron <jaybitron@gmail.com>2018-10-10 14:12:53 -0700
committerGitHub <noreply@github.com>2018-10-10 14:12:53 -0700
commitb0c41e3ec2bca832466ea7709827518159af0c08 (patch)
tree71018507c3b5107d8e2da6b844215a8f5a3689b5 /src/config
parent391756f262c93d4361fb6189a3ba9704283f73aa (diff)
downloadtor-b0c41e3ec2bca832466ea7709827518159af0c08.tar.gz
tor-b0c41e3ec2bca832466ea7709827518159af0c08.zip
Fix the missing unpack function in mmdb-convert.py
Diffstat (limited to 'src/config')
-rw-r--r--src/config/mmdb-convert.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/mmdb-convert.py b/src/config/mmdb-convert.py
index 3a454a3fc1..706a8b03cc 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):