
    W̩g                     D    S SK JrJrJr  S SKJr  CCCSS jrSS jrS rg)    )absolute_importprint_functionunicode_literals)getpassNc                 j    SnUb  SU-   nU(       a  US-  n[        SU < SU< S35        [        5       $ )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                 $    [        SXX#4-  5        g )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                 |    U (       a  UR                  U 5      $ [        US5      (       d  gUR                  SS5        g)z?A callback for data.  hook should be a Python file-like object.seekNr   )readhasattrr   )countr   s     r   	readcb_fhr   +   s6    yy tV$$		!Qr   )N)
__future__r   r   r   r   r   r   r    r   r   <module>r"      s(   $ I H ^%5
(

r   