o 좃[¥ã@sFddlmZmZmZddlmZ[[[d dd„Zd dd„Zdd „ZdS) é)Úabsolute_importÚprint_functionÚunicode_literals)ÚgetpassNcCs6d}|dur d|}|r|d7}td||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)ÚhintÚdescÚprev_badÚhookÚwhy©rú//usr/lib/python3/dist-packages/gpg/callbacks.pyÚpassphrase_stdinsrcCstd||||fƒdS)Nz?PROGRESS UPDATE: what = %s, type = %d, current = %d, total = %d)r)ÚwhatÚtypeÚcurrentÚtotalr rrrÚprogress_stdout&s  ÿrcCs,|r| |¡St|dƒsdS| dd¡dS)z?A callback for data. hook should be a Python file-like object.ÚseekNr)ÚreadÚhasattrr)Úcountr rrrÚ readcb_fh+s    r)N)Ú __future__rrrrrrrrrrrÚs