• File: outdated.pyo
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/lib/python2.7/site-packages/pip/utils/outdated.pyo
  • Date Modified: 09/03/2020 6:03 AM
  • File size: 4.94 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit

r2Wc@@s%ddlmZddlZddlZddlZddlZddlZddlm	Z	ddl
mZddl
mZmZddlmZddlmZmZddlmZmZdd	lmZd
ZejeZdefdYZd
efdYZ dZ!dZ"dS(i(tabsolute_importN(tlockfile(tversion(t
total_secondstWINDOWS(tPyPI(tUSER_CACHE_DIRtrunning_under_virtualenv(t
ensure_dirtget_installed_version(tcheck_path_owners%Y-%m-%dT%H:%M:%SZtVirtualenvSelfCheckStatecB@seZdZdZRS(cC@sptjjtjd|_y.t|j}tj||_	WdQXWn t
tfk
rki|_	nXdS(Nspip-selfcheck.json(tostpathtjointsystprefixtstatefile_pathtopentjsontloadtstatetIOErrort
ValueError(tselft	statefile((s6/usr/lib/python2.7/site-packages/pip/utils/outdated.pyt__init__scC@sRt|jd:}tji|jtd6|d6|dtddWdQXdS(	Ntwt
last_checktpypi_versiont	sort_keyst
separatorst,t:(R R!(RRRtdumptstrftimetSELFCHECK_DATE_FMTtTrue(RRtcurrent_timeR((s6/usr/lib/python2.7/site-packages/pip/utils/outdated.pytsave$s(t__name__t
__module__RR'(((s6/usr/lib/python2.7/site-packages/pip/utils/outdated.pyRs	
tGlobalSelfCheckStatecB@seZdZdZRS(cC@swtjjtd|_y5t|j }tj|tj	|_
WdQXWn#ttt
fk
rri|_
nXdS(Nsselfcheck.json(RR
RRRRRRRRRRRtKeyError(RR((s6/usr/lib/python2.7/site-packages/pip/utils/outdated.pyR3s#cC@sttjj|jsdSttjj|jtj|jtjj|jrt	|j}t
j|}WdQXni}i|jt
d6|d6|tj<t	|jd#}t
j||dtddWdQXWdQXdS(	NRRRRRR R!(R R!(R
RR
tdirnameRRRtLockFiletexistsRRRR#R$RRR"R%(RRR&RR((s6/usr/lib/python2.7/site-packages/pip/utils/outdated.pyR'=s(R(R)RR'(((s6/usr/lib/python2.7/site-packages/pip/utils/outdated.pyR*2s	
cC@strtStSdS(N(RRR*(((s6/usr/lib/python2.7/site-packages/pip/utils/outdated.pytload_selfcheck_statefileXs	cC@std}|dkrdStj|}d}ypt}tjj}d|jkrd|jkrtjj|jdt	}t
||dkr|jd}qn|dkrE|jtj
did	d
6}|jgtt|jddtjD]}tj|js
|^q
d
}|j||ntj|}	||	kr|j|	jkrtrd}
nd}
tjd|||
nWn$tk
rtjddtnXdS(sCheck for an update for pip.

    Limit the frequency of checks to once per week. State is stored either in
    the active virtualenv or in the user's USER_CACHE_DIR keyed off the prefix
    of the pip script path.
    tpipNRRiii<theaderssapplication/jsontAccepttreleasestkeyis
python -m pipsYou are using pip version %s, however version %s is available.
You should consider upgrading via the '%s install --upgrade pip' command.s5There was an error checking the latest version of piptexc_infoii`'i:	(R	tNonetpackaging_versiontparseR/tdatetimetutcnowRtstrptimeR$RtgetRtpip_json_urltraise_for_statustsortedtlistRt
is_prereleaseR'tbase_versionRtloggertwarningt	ExceptiontdebugR%(tsessiontinstalled_versiontpip_versionRRR&Rtresptvtremote_versiontpip_cmd((s6/usr/lib/python2.7/site-packages/pip/utils/outdated.pytpip_version_check_sL		
		
	
(#t
__future__RR9Rtloggingtos.pathRRtpip._vendorRtpip._vendor.packagingRR7t
pip.compatRRt
pip.modelsRt
pip.locationsRRt	pip.utilsRR	tpip.utils.filesystemR
R$t	getLoggerR(RCtobjectRR*R/RN(((s6/usr/lib/python2.7/site-packages/pip/utils/outdated.pyt<module>s$&