File: //lib64/python3.6/site-packages/gpg/__pycache__/callbacks.cpython-36.pyc
3
좃[�  �               @   sF   d dl mZmZmZ d dlmZ [[[d
dd�Zddd�Zdd	� ZdS )�    )�absolute_import�print_function�unicode_literals)�getpassNc             C   s6   d}|dk	rd| }|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   )ZhintZdescZprev_bad�hookZwhy� r
   �!/usr/lib64/python3.6/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�typeZcurrentZtotalr	   r
   r
   r   �progress_stdout&