File: //lib64/python3.9/site-packages/gpg/__pycache__/callbacks.cpython-39.opt-1.pyc
a
    좃[�  �                   @   sF   d dl mZmZmZ d dlmZ [[[d
dd�Zddd�Zdd	� ZdS )�    )�absolute_import�print_function�unicode_literals)�getpassNc                 C   s6   d}|durd| }|r |d7 }t d| |f � t� S )z�This is a sample callback that will read a passphrase from
    the terminal.  The hook here, if present, will be used to describe
    why the passphrase is needed.� N� z (again)zPlease supply %s' password%s:)�printr   )�hintZdescZprev_bad�hook�why� r   �3/usr/lib64/python3.9/site-packages/gpg/callbacks.py�passphrase_stdin   s    r   c                 C   s   t d| |||f � d S )Nz?PROGRESS UPDATE: what = %s, type = %d, current = %d, total = %d)r   )Zwhat�type�current�totalr
   r   r   r
   �progress_stdout&