/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/utils
NameSizeModeActions
appdirs.py91730644editdlrm
appdirs.pyc92640644editdlrm
build.py13120644editdlrm
build.pyc18680644editdlrm
deprecation.py21520644editdlrm
deprecation.pyc20500644editdlrm
filesystem.py8990644editdlrm
filesystem.pyc8320644editdlrm
logging.py33260644editdlrm
logging.pyc52020644editdlrm
outdated.py55550644editdlrm
outdated.pyc54940644editdlrm
ui.py67740644editdlrm
ui.pyc75210644editdlrm
__init__.py268140644editdlrm
__init__.pyc314650644editdlrm
Edit: /usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/utils/ui.pyc (7521B)
Ρς vVc@`s™ddklZddklZddkZddkZddklZlZlZddkl Z ddk l Z ddk l Z ddklZdd klZlZdd klZdd klZydd klZWnej o dZnXd „ZeeeƒZdefd„ƒYZdefd„ƒYZdefd„ƒYZdeeeefd„ƒYZ deeeeefd„ƒYZ!dS(i(tabsolute_import(tdivisionN(tsignaltSIGINTtdefault_int_handler(tWINDOWS(t format_size(tget_indentation(tsix(tBartIncrementalBar(t WritelnMixin(tSpinner(tcoloramacC`s¬t|iddƒ}|p|St|dtiƒƒt|dtiƒƒg}|tt|dgƒƒ7}y tiƒi|ƒi|ƒWntj o|SX|SdS(Ntencodingt empty_filltfilltphases( tgetattrtfiletNoneRt text_typetlisttjointencodetUnicodeEncodeError(t preferredtfallbackRt characters((sD/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/utils/ui.pyt_select_progress_classs tInterruptibleMixincB`s)eZdZd„Zd„Zd„ZRS(sΒ Helper to ensure that self.finish() gets called on keyboard interrupt. This allows downloads to be interrupted without leaving temporary state (like hidden cursors) behind. This class is similar to the progress library's existing SigIntMixin helper, but as of version 1.2, that helper has the following problems: 1. It calls sys.exit(). 2. It discards the existing SIGINT handler completely. 3. It leaves its own handler in place even after an uninterrupted finish, which will have unexpected delayed effects if the user triggers an unrelated keyboard interrupt some time after a progress-displaying download has already completed, for example. cO`sOtt|ƒi||Žtt|iƒ|_|idjo t|_ndS(s= Save the original SIGINT handler for later. N( tsuperRt__init__RRt handle_siginttoriginal_handlerRR(tselftargstkwargs((sD/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/utils/ui.pyR HscC`s'tt|ƒiƒtt|iƒdS(s½ Restore the original SIGINT handler after finishing. This should happen regardless of whether the progress display finishes normally, or gets interrupted. N(RRtfinishRRR"(R#((sD/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/utils/ui.pyR&XscC`s|iƒ|i||ƒdS(s² Call self.finish() before delegating to the original SIGINT handler. This handler should only be in place while the progress display is active. N(R&R"(R#tsignumtframe((sD/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/utils/ui.pyR!bs (t__name__t __module__t__doc__R R&R!(((sD/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/utils/ui.pyR6s  tDownloadProgressMixincB`sJeZd„Zed„ƒZed„ƒZed„ƒZdd„ZRS(cO`s8tt|ƒi||Ždtƒd|i|_dS(Nt i(RR,R Rtmessage(R#R$R%((sD/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/utils/ui.pyR oscC`s t|iƒS(N(Rtindex(R#((sD/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/utils/ui.pyt downloadedsscC`s*|idjodStd|iƒdS(Ngs...is/s(tavgR(R#((sD/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/utils/ui.pytdownload_speedwscC`s|io d|iSdS(Nseta %st(tetateta_td(R#((sD/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/utils/ui.pyt pretty_eta~s  icc`s1x |D]}|V|i|ƒqW|iƒdS(N(tnextR&(R#tittntx((sD/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/utils/ui.pytiter„s (R)R*R tpropertyR0R2R6R;(((sD/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/utils/ui.pyR,ms  t WindowsMixincB`seZd„ZRS(c`sŒtoˆio tˆ_nttˆƒi||ŽtoJtoCtiˆiƒˆ_‡fd†ˆi_ ‡fd†ˆi_ ndS(Nc`sˆiiiƒS((Rtwrappedtisatty((R#(sD/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/utils/ui.pyt‘sc`sˆiiiƒS((RR>tflush((R#(sD/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/utils/ui.pyR@₯s( Rt hide_cursortFalseRR=R R t AnsiToWin32RR?RA(R#R$R%((R#sD/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/utils/ui.pyR s (R)R*R (((sD/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/utils/ui.pyR=‹stDownloadProgressBarcB`seZeiZdZdZRS(s %(percent)d%%s0%(downloaded)s %(download_speed)s %(pretty_eta)s(R)R*tsyststdoutRR.tsuffix(((sD/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/utils/ui.pyRE¨s tDownloadProgressSpinnercB`s)eZeiZdZd„Zd„ZRS(s!%(downloaded)s %(download_speed)scC`s6t|dƒpti|iƒ|_nt|iƒS(Nt_phaser(thasattrt itertoolstcycleRRJR7(R#((sD/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/utils/ui.pyt next_phaseΆscC`sq|i|}|iƒ}|i|}di||odnd||odnd|gƒ}|i|ƒdS(NR3R-(R.RNRHRtwriteln(R#R.tphaseRHtline((sD/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/utils/ui.pytupdate»s    (R)R*RFRGRRHRNRR(((sD/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/utils/ui.pyRI°s  ("t __future__RRRLRFRRRt pip.compatRt pip.utilsRtpip.utils.loggingRt pip._vendorRtpip._vendor.progress.barR R tpip._vendor.progress.helpersR tpip._vendor.progress.spinnerR R t ExceptionRRt_BaseBartobjectRR,R=RERI(((sD/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/utils/ui.pyts0    7