
Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­
<!DOCTYPE html>
<html>
3
©ft`  ã               @   s8   d dl mZ d dlmZ ddd„Zddd„Zdd	„ Zd
S )é    )Úunicode_literals)Úlongú c       	   	   C   s°   ddddddddd	g	}|r d
}nd}d}d}t |ƒd }| dkrDd} x$| |krh||k rh|d }| | } qFW t| tƒs~t| tƒr„d}n| dk r’d}nd}|t| p dƒ||| f S )añ  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*
    r   ÚkÚMÚGÚTÚPÚEÚZÚYg     @�@g      �@iç  r   é   Ng        z%i%s%sgfffffæ#@z%.1f%s%sz%.0f%s%s)ÚlenÚ
isinstanceÚintr   Úfloat)	ZnumberZSIZspaceZsymbolsÚstepZthreshÚdepthZ	max_depthÚformat© r   ú/usr/lib/python3.6/format.pyÚformat_number   s4     r   c             C   sx   | dks| dk r|rdS dS nV| t dƒkr.dS t| ƒ} | d }| d } |rh|d }|d }d||| f S d	|| f S dS )
aÆ  Return a human-readable string representation of a number
    of seconds.  The string will show seconds, minutes, and
    optionally hours.

    :param seconds: the number of seconds to convert to a
       human-readable form
    :param use_hours: If use_hours is 0, the representation will
       be in minutes and seconds. Otherwise, it will be in hours,
       minutes, and seconds
    :return: a human-readable string representation of *seconds*
    Nr   z--:--:--z--:--ÚinfZInfiniteé<   z%02i:%02i:%02iz	%02i:%02i)r   r   )ZsecondsZ	use_hoursZminutesZhoursr   r   r   Úformat_timeI   s     r   c             C   s   dj dd„ | jƒ D ƒƒS )NÚ
c             s   s   | ]}d | V  qdS )z  Nr   )Ú.0Úsr   r   r   ú	<genexpr>h   s    zindent_block.<locals>.<genexpr>)ÚjoinÚ
splitlines)r   r   r   r   Úindent_blockg   s    r!   N)r   r   )r   )Z
__future__r   Z
dnf.pycompr   r   r   r!   r   r   r   r   Ú<module>   s   
5
