def dec2bin(i, bits=None):
	i = int(i)
	b = ''
	while i > 0:
		j = i & 1
		b = str(j) + b
		i >>= 1
	if bits:
		b = b.rjust(bits,'0')
	return b
dataset/ETHPy150Open lunixbochs/uberserver/tasserver/LegacyUsers.py/dec2bin/original