�
�[/\c @ sH d d l m Z d d l m Z d d d � Z d d � Z d � Z d S( i����( t unicode_literals( t longi u c C s� d d d d d d d d d g } | r0 d
} n d } d } d
} t | � d } | d k rg d } n x0 | | k r� | | k r� | d } | | } qj Wt | t � s� t | t � r� d } n | d k r� d } n d } | t | p� d
� | | | f S( u� Return a human-readable metric-like string representation
of a number.
:param number: the number to be converted to a human-readable form
:param SI: If is 0, this function will use the convention
that 1 kilobyte = 1024 bytes, otherwise, the convention
that 1 kilobyte = 1000 bytes will be used
:param space: string that will be placed between the number
and the SI prefix
:return: a human-readable metric-like string representation of
*number*
u u ku Mu Gu Tu Pu Eu Zu Yg @�@g �@i� i i g u %i%s%sgfffff�#@u %.1f%s%su %.0f%s%sN( t lent Nonet
isinstancet intR t float( t numbert SIt spacet symbolst stept thresht deptht max_deptht format( ( s2 /usr/lib/python2.7/site-packages/dnf/cli/format.pyt
format_number s4
c C s� | d k s | d k r) | r"