Another indentation fix that isn't helping (tho in this case, obvious why)

This commit is contained in:
Jeff Forcier 2014-03-07 11:46:14 -08:00
parent 8f49c15258
commit 5eac8e8b87
1 changed files with 7 additions and 7 deletions

View File

@ -133,13 +133,13 @@ def bit_length(n):
except AttributeError: except AttributeError:
norm = deflate_long(n, 0) norm = deflate_long(n, 0)
hbyte = byte_ord(norm[0]) hbyte = byte_ord(norm[0])
if hbyte == 0: if hbyte == 0:
return 1 return 1
bitlen = len(norm) * 8 bitlen = len(norm) * 8
while not (hbyte & 0x80): while not (hbyte & 0x80):
hbyte <<= 1 hbyte <<= 1
bitlen -= 1 bitlen -= 1
return bitlen return bitlen
def tb_strings(): def tb_strings():
return ''.join(traceback.format_exception(*sys.exc_info())).split('\n') return ''.join(traceback.format_exception(*sys.exc_info())).split('\n')