
    좃[                     @    d dl mZmZmZ d dlmZ [[[ddZddZd Zy)    )absolute_importprint_functionunicode_literals)getpassNc                 Z    d}|d|z   }|r|dz  }t        d| d|d       t               S )zThis 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.  z (again)zPlease supply z
' password:)printr   )hintdescprev_badhookwhys        //usr/lib/python3/dist-packages/gpg/callbacks.pypassphrase_stdinr      s:     CDjz	T3
789    c                 (    t        d| |||fz         y )Nz?PROGRESS UPDATE: what = %s, type = %d, current = %d, total = %d)r   )whattypecurrenttotalr   s        r   progress_stdoutr   &   s    	
Kw
&' (r   c                 h    | r|j                  |       S t        |d      sy|j                  dd       y)z?A callback for data.  hook should be a Python file-like object.seekNr   )readhasattrr   )countr   s     r   	readcb_fhr   +   s3    yy tV$		!Qr   )N)
__future__r   r   r   r   r   r   r    r   r   <module>r"      s(   $ I H ^%5
(

r   