/usr/lib/python2.6/site-packages/boto/s3
NameSizeModeActions
acl.py57270644editdlrm
acl.pyc60930644editdlrm
acl.pyo60930644editdlrm
bucket.py793690644editdlrm
bucket.pyc707340644editdlrm
bucket.pyo706880644editdlrm
bucketlistresultset.py67960644editdlrm
bucketlistresultset.pyc57470644editdlrm
bucketlistresultset.pyo57470644editdlrm
bucketlogging.py31830644editdlrm
bucketlogging.pyc29060644editdlrm
bucketlogging.pyo29060644editdlrm
connection.py261920644editdlrm
connection.pyc237440644editdlrm
connection.pyo236070644editdlrm
cors.py89410644editdlrm
cors.pyc80180644editdlrm
cors.pyo80180644editdlrm
deletemarker.py20870644editdlrm
deletemarker.pyc15010644editdlrm
deletemarker.pyo15010644editdlrm
key.py823190644editdlrm
key.pyc660280644editdlrm
key.pyo660280644editdlrm
keyfile.py44270644editdlrm
keyfile.pyc50100644editdlrm
keyfile.pyo50100644editdlrm
lifecycle.py82540644editdlrm
lifecycle.pyc92330644editdlrm
lifecycle.pyo92330644editdlrm
multidelete.py47570644editdlrm
multidelete.pyc49800644editdlrm
multidelete.pyo49800644editdlrm
multipart.py120490644editdlrm
multipart.pyc119560644editdlrm
multipart.pyo119560644editdlrm
prefix.py16610644editdlrm
prefix.pyc12430644editdlrm
prefix.pyo12430644editdlrm
resumable_download_handler.py155950644editdlrm
resumable_download_handler.pyc103360644editdlrm
resumable_download_handler.pyo103360644editdlrm
tagging.py17320644editdlrm
tagging.pyc36880644editdlrm
tagging.pyo36880644editdlrm
user.py19680644editdlrm
user.pyc15140644editdlrm
user.pyo15140644editdlrm
website.py106070644editdlrm
website.pyc123110644editdlrm
website.pyo123110644editdlrm
__init__.py23450644editdlrm
__init__.pyc18070644editdlrm
__init__.pyo18070644editdlrm
Edit: /usr/lib/python2.6/site-packages/boto/s3/resumable_download_handler.pyo (10336B)
Ñò Å-õSc@söddkZddkZddkZddkZddkZddkZddkZddklZlZddk l Z ddk l Z ddk l Z ddklZddklZdefd „ƒYZed „Zd efd „ƒYZdS( iÿÿÿÿN(tconfigtstorage_uri_for_key(tAWSAuthConnection(tResumableDownloadException(tResumableTransferDisposition(tKeyFile(tKeytByteTranslatingCallbackHandlercBs eZdZd„Zd„ZRS(s” Proxy class that translates progress callbacks made by boto.s3.Key.get_file(), taking into account that we're resuming a download. cCs||_||_dS(N(t proxied_cbtdownload_start_point(tselfRR ((sF/usr/lib/python2.6/site-packages/boto/s3/resumable_download_handler.pyt__init__?s cCs|i|i||ƒdS(N(RR (R ttotal_bytes_uploadedt total_size((sF/usr/lib/python2.6/site-packages/boto/s3/resumable_download_handler.pytcallCs(t__name__t __module__t__doc__R R(((sF/usr/lib/python2.6/site-packages/boto/s3/resumable_download_handler.pyR9s cCs~t|tƒo| o|iƒiS|p|iƒ}n|idtiƒ|iƒ}|p|i|tiƒn|S(sH Returns size of file, optionally leaving fp positioned at EOF. i( t isinstanceRtgetkeytsizettelltseektostSEEK_ENDtSEEK_SET(tfptposition_to_eoftcur_post cur_file_size((sF/usr/lib/python2.6/site-packages/boto/s3/resumable_download_handler.pytget_cur_file_sizeHs tResumableDownloadHandlercBszeZdZdZeieeiei fZ d d d„Z d„Z d„Zd„Zd„Zd ded d d„ZRS( s* Handler for resumable downloads. icCs=||_||_d|_|o|iƒnd|_dS(s Constructor. Instantiate once for each downloaded file. :type tracker_file_name: string :param tracker_file_name: optional file name to save tracking info about this download. If supplied and the current process fails the download, it can be retried in a new process. If called with an existing file containing an unexpired timestamp, we'll resume the transfer for this file; else we'll start a new resumable download. :type num_retries: int :param num_retries: the number of times we'll re-try a resumable download making no progress. (Count resets every time we get progress, so download can span many more than this number of retries.) N(ttracker_file_namet num_retriestNonetetag_value_for_current_downloadt_load_tracker_file_etagR (R R R!((sF/usr/lib/python2.6/site-packages/boto/s3/resumable_download_handler.pyR bs    c CsÂd}zŸyWt|idƒ}|iƒidƒ|_t|iƒ|ijod|iGHnWnAtj o5}|i t i jod|i|i fGHq¤nXWd|o|i ƒnXdS(Ntrs sJCouldn't read etag in tracker file (%s). Restarting download from scratch.sJCouldn't read URI tracker file (%s): %s. Restarting download from scratch.( R"topenR treadlinetrstripR#tlent MIN_ETAG_LENtIOErrorterrnotENOENTtstrerrortclose(R tfte((sF/usr/lib/python2.6/site-packages/boto/s3/resumable_download_handler.pyR$~sc Cs¯|iidƒ|_|ipdSd}zhy*t|idƒ}|id|iƒWn7tj o+}td|i|i ft i ƒ‚nXWd|o|i ƒnXdS(Ns"'tws%s s·Couldn't write tracker file (%s): %s. This can happenif you're using an incorrectly configured download tool (e.g., gsutil configured to save tracker files to an unwritable directory)( tetagtstripR#R R"R&twriteR+RR.RtABORTR/(R tkeyR0R1((sF/usr/lib/python2.6/site-packages/boto/s3/resumable_download_handler.pyt_save_tracker_info–s cCs8|io*tii|iƒoti|iƒndS(N(R Rtpathtexiststunlink(R ((sF/usr/lib/python2.6/site-packages/boto/s3/resumable_download_handler.pyt_remove_tracker_fileªs c CsÎt|dtƒ} | o|ioý|i|iidƒjoá| |ijo8td|i| tt |ƒƒ|ift i ƒ‚n5| |ijo$|i i idjo dGHndS|i i idjo dGHn|iƒ}d| |idf|d R?s4Caught non-retryable ResumableDownloadException (%s)sXCaught non-retryable ResumableDownloadException (%s); aborting and removing tracker files3Caught ResumableDownloadException (%s) - will retryseToo many resumable download attempts failed without progress. You might try this download again laterisWGot retryable failure (%d progress-less in a row). Sleeping %d seconds before re-trying(RCRDRER!R"RtgetintR@RRPR<tRETRYABLE_EXCEPTIONSt__repr__RR+R,tEPIPERHRIRt dispositionRtABORT_CUR_PROCESStmessageR6R/thttplibtIncompleteReadttimetsleep(R R7RRKRLRMRNROR?REtprogress_less_iterationsthad_file_bytes_before_attemptR1tsleep_time_secs((sF/usr/lib/python2.6/site-packages/boto/s3/resumable_download_handler.pyRIßst*       #            N(RRRR*RYt HTTPExceptionR+tsocketterrortgaierrorRSR"R R$R8R<RPtFalseRI(((sF/usr/lib/python2.6/site-packages/boto/s3/resumable_download_handler.pyRXs     0 (R,RYRtreRaR[tbotoRRtboto.connectionRtboto.exceptionRRtboto.s3.keyfileRt boto.gs.keyRRHtobjectRRdRR(((sF/usr/lib/python2.6/site-packages/boto/s3/resumable_download_handler.pyts