#NEWLINE# def format_bit_size( size , precision = 1 , binary = False , full_name = False ) : #NEWLINE# #INDENT# "Same as ``format_data_size`` but specifically for bits.\n\n    Examples:\n\n    >>> format_bit_size(2048)\n    '2.0 kb'\n    >>> format_bit_size(2048, full_name=True)\n    '2.0 kilobits'\n    " #NEWLINE# if full_name : #NEWLINE# #INDENT# return format_data_size ( size , 'bits' , full_name , binary , True ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return format_data_size ( size , 'b' , precision , binary , False )