This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import argparse | |
import binascii | |
import sys | |
import leveldb | |
def b2x(b): | |
"""Convert bytes to a hex string""" | |
return binascii.hexlify(b).decode('utf8') |