Submit
Path:
~
/
/
lib
/
python3
/
dist-packages
/
mercurial
/
__pycache__
/
File Content:
progress.cpython-310.pyc
o �]Lb�+ � @ sp d dl mZ d dlZd dlZd dlZddlmZ ddlmZ dd� Z dd � Z d d� Zdd � ZG dd� de �ZdS )� )�absolute_importN� ��_)�encodingc G s d� dd� | D ��S )N� c s s � | ]}|r|V qd S �N� )�.0�sr r �4/usr/lib/python3/dist-packages/mercurial/progress.py� <genexpr> s � zspacejoin.<locals>.<genexpr>)�join)�argsr r r � spacejoin � r c C s* | j p| �d� o| �| j�p| �dd�S )N� progresss assume-tty)�quiet�plain�_isatty�ferr� configbool)�uir r r �shouldprint s �r c C s | dk r t d�| S | d }|dk r | |d 8 } t d�|| f S |d7 }|d }||d 8 }|dk r:t d�||f S |d7 }|d }||d 8 }|dk rTt d �||f S |d7 }|d }||d 8 }|dk rnt d�||f S |d7 }|d }||d 8 }t d�||f S )z�format a number of remaining seconds in human readable way This will properly display seconds, minutes, hours, days if needed�<