diff --git a/drama/helpers/base36.py b/drama/helpers/base36.py index 17acfce9a..e69de29bb 100644 --- a/drama/helpers/base36.py +++ b/drama/helpers/base36.py @@ -1,16 +0,0 @@ -def hex2bin(hexstr): - value = int(hexstr, 16) - bindigits = [] - - # Seed digit: 2**0 - digit = (value % 2) - value //= 2 - bindigits.append(digit) - - while value > 0: - # Next power of 2**n - digit = (value % 2) - value //= 2 - bindigits.append(digit) - - return ''.join([str(d) for d in bindigits]) \ No newline at end of file